I hope someone can spare me some time to clear up my investigations.
I am porting from maven 1 to maven 2, and we had begun using junit 4.1
by using the JUnit4TestAdapter like so:
/**
* Wrap the new junit4 testcase in a 3.x style suite
* to be recognized by eclipse runner and maven surefire.
* @return
*/
public static junit.framework.Test suite() {
return new JUnit4TestAdapter(MyTest.class);
}
This worked fine for maven 1 and since I didn't know any better, was
ported over to maven 2, where it *MOSTLY* works.
I say mostly, because there are 2 out of about 80 classes don't get any
tests detected in them i.e.
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.595 sec
even though they look almost identical to other classes that do have
tests detected & run.
From reading around, it looks like I am between a rock & a hard place
because http://jira.codehaus.org/browse/MSUREFIRE-131 would imply the
approach above shouldn't work (well it doesn't seem to all the time) but
http://jira.codehaus.org/browse/MSUREFIRE-84 would imply that native
junit 4 support is not baked properly either.
I'd rather not go to a temporary solution like
http://www.unto.net/wiki/Maven_JUnit4_plugin if I don't have to.
Any insights, work-arounds of corrections would be greatly appreciated
Matthew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]