I'm using JUnit 4 for my unit tests and using @Test instead of testMethodName. The actual JUnit task executes fine and all tests are detected and pass, but once they get to the JUnit report, all class reports label the test methods as "unknown" in the name column instead of the actual method name.
Although 38811 reports doesn't work at all still marking as duplicate as in 38811 support for junit4 is introduced. *** This bug has been marked as a duplicate of 38811 ***
Hi I solved that issue on that time by extending our *Test classes with TestCase. Although it is not required with Junit 4 still, to get reports I did this. I think now we can achieve this by using Ant 1.7(Beta). Regards, Saurav (In reply to comment #0) > I'm using JUnit 4 for my unit tests and using @Test instead of testMethodName. > The actual JUnit task executes fine and all tests are detected and pass, but > once they get to the JUnit report, all class reports label the test methods as > "unknown" in the name column instead of the actual method name.