The default include patterns only include

Test*.java
*Test.java
*TestCase.java

irrespective of whether you have annotated with JUnit 4 annotations or
not, surefire will only run those tests that are defined by the
include rules.

Note that this is a good thing as it allows you to run different sets
of tests in different phases, e.g.

if you use failsafe, it's include rules only include

IT*.java
*IT.java
*ITCase.java

so you can keep the IT's and the UT's in the same folder and let
failsafe run the ITs while surefire runs the UTs

-Stephen

On 13 November 2010 20:20, Ron Gross <r...@delver.com> wrote:
> The details are here:
> http://stackoverflow.com/questions/4174276/maven-surefire-finds-no-tests-to-run
>
> Can anyone help?
>

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

Reply via email to