Test does not have unique name
within work directory
More Symptoms: At a terminal window, you get:
Error: -- Test does not have unique name within work directory -- Test name: Duplicate -- Used by test: Duplicate.java -- And by test: Duplicate.html -- Overwriting results of first test
A single directory contains more than one file with the same basename.
Answer: The two files contain descriptions of tests and the harness is
unable to determine a unique .jtr
filename so
the harness will overwrite the results of the first test. It is possible to have
a single directory with more than one file with the same basename; however,
only one of those files may have a test description (@test
is the
first token of the comment).
If both files contain identical test descriptions, select one file to
contain the primary test description. Disable the other test description by
either removal of the entire comment or simply the @test
tag.
If the files contain unique test descriptions, one of the basefile names must be changed.