You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gohan <ha...@gmail.com> on 2007/07/26 21:30:54 UTC

Run surefire unit test with custom junit runner.

I wonder if it's possible to run JUnit4 tests with a custom JUnit runner
using the surefire maven2 plugin. The test uses the @RunWith annotation to
tell which JUnit runner to use, e.g.: 

@RunWith(MyJUnitRunner.class)
public class MyClassTest {
  ..
}

The tests runs perfectly in Eclipse but not when running them from Maven. 
Any ideas?

Thanks
-- 
View this message in context: http://www.nabble.com/Run-surefire-unit-test-with-custom-junit-runner.-tf4153653s177.html#a11817526
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org