E81008: duplicate test case IDs in same directory

Category: E81xxx-E83xxx Test configuration, execution and coverage · Classification: DUPLICATE_CASE_ID · All error codes

What went wrong

Multiple commandline_arg_{id}.txt files have the same {id}, creating ambiguous test cases.

Worked examples

Compilable examples demonstrating this error and the correct fix:

  • ek9 -q 953 (How do @Test programs work with command-line arguments...)

For example

commandline_arg_test.txt beside commandline_arg_Test.txt: on a case-insensitive filesystem the two are the same file.

How to fix it

  1. Rename one file with distinct ID: test1 vs test2
  2. Or remove duplicate file and its expected_case file
  3. Use lowercase IDs to avoid case sensitivity issues

Common causes

  • Case sensitivity issues (test vs Test)
  • Copy-paste without renaming

Examples

No compiled example of E81008 is held in the error catalogue yet; the explanation above is the rich message the compiler shows for it (ek9 -h E81008).