Skip to content

"EListError: Duplicates not allowed" for two files with the same name in different locations #14

Description

@prekip

When you have two files with the same name in different locations, CodeCoverage will fail with "EListError: Duplicates not allowed" without any clear details.

Activity

  1. ekot1 commented on Nov 17, 2021

    @ekot1
    Contributor

    Could you provide sample project, I'm not sure how you can add two files with the same name to Delphi project

  2. prekip commented on Nov 17, 2021

    @prekip
    Author

    Thanks for your reply. The file isn't in the project twice. We use the -uf start-up parameter to specifiy which units have to be tested. The file provided there is generated dynamically by looking for *.test.pas or something like that. One unit was moved from one folder to another, but accidentally wasn't removed from GIT, so it was in the file twice. I've attached the applicable scripts, but you'll probably have to edit them to reproduce it.

    CodeCoverageBatchFIles.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions