philsquared/Catch — Issue #59: Tests with same name fail to run and no warning is issued
Author: samaursa
Created: 2011-12-03 03:04:34+00:00
State: open

If I have a test:

TEST_CASE_METHOD(someFixture, "MyTest", "Test 1");

and another one:

TEST_CASE_METHOD(someFixture, "MyTest", "Test 2");

the second test case fails to run, which is expected, but no warning is issued. Ideally, it should not compile, or at least, an assertion should fail somewhere.

Currently, I have many tests and I make this mistake sometimes when I am writing multiple cases. Apart from putting break points, I have no way of knowing whether I made this sort of a mistake.