Specifying a dependency to junit-4.8.1.jar with test scope works for me,
as in:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
Cheers,
Nicola Musatti
MartyMcFly wrote:
Hi,
I do have problems running Junit4 Tests with Maven surefire.
Apparently it only recognizes JUnit3 testcases. So @Test or @Before
annotated methods are ignored. Only if they follow the Junit3 style they are
run.
I have junit-dep.4.7.jar as dependencies, the tests are in src/test/java and
running in Eclipse via "Run As" -> "Junit Tests" work fine.
The surefire plugin is version 2.4.3
Is there any way to tell surefire to run with Junit 4 ?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]