Bug 40406 - [junitreport] Using JUnit 4 test methods appear as "unknown"
Summary: [junitreport] Using JUnit 4 test methods appear as "unknown"
Status: RESOLVED DUPLICATE of bug 38811
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.6.5
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-04 01:52 UTC by Matt Eland
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Eland 2006-09-04 01:52:25 UTC
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.
Comment 1 J.M. (Martijn) Kruithof 2006-09-04 04:22:21 UTC
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 ***
Comment 2 Saurav Kumar 2006-11-07 22:23:08 UTC
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.