Surefire is not picking up JUnit 4/TestNG 5 tests

If you are using any of these artifacts from Spring Enterprise Bundle repository –just like I did–, you can face this problem. Since the artifact names of these artifacts are different than usual, it is not possible for surefire to detect.

Solution is easy, just configure surefire as follows.

READ  Automatic deployment for Tomcat Applications

You can use mvn -X to run maven in debug mode, it is very useful, this is how I figured out the problem.

Leave a Reply

Your email address will not be published. Required fields are marked *