maven-surefire-plugin no tests to run

Problem

no target/test-classes are generated when running mvn test

executing unit test directly (by right-clicking) does generate the class files; so then doing mvn test works

Solution

It turns out that somehow test folder was in the wrong place:

wrong: project/test

right: project/src/test

 

 

Keywords

Searched for maven-surefire-plugin no tests to run class files are not generated 5:25pm

 

  java – Maven does not find JUnit tests… – stackoverflow.com 5:26pm

 

Searched for maven-surefire-plugin no tests to run 5:25pm
Searched for maven surefire junit 5:23pm
  Maven Surefire Plugin – Using JUnit – apache.org – Viewed 2 times 5:23pm
Searched for maven surefire junit no target “test-classes” generated 5:12pm
  java – Maven/Surefire finds no tests… – stackoverflow.com – Viewed 2 times 5:12pm
  java – Surefire is not picking up Junit… – stackoverflow.com – Viewed 2 times 5:12pm
Searched for maven no target “test-classes” generated 5:11pm
  Maven compiler plugin, build helper plugin… – stackoverflow.com 5:11pm
  maven 2 – Compiling Test classes:not… – stackoverflow.com 5:11pm
Searched for maven no target test-classes generated 5:10pm
Searched for maven-surefire-plugin 5:08pm
  Maven Repository: org.apache.maven.plugins… – mvnrepository.com – Viewed 2 times 5:08pm
Searched for FlowSpringJUnit4ClassRunner 5:05pm
  Resolving @ContextConfiguration(classes={AppC… – activeintelligence.org 5:06pm
Searched for junit surefire maven test not test runs after executing without context 5:04pm
Searched for intellij maven iml file reset 4:55pm
  java – Import Maven dependencies in IntelliJ… – stackoverflow.com 4:55pm
Searched for intellij maven iml file 4:54pm
Searched for intellij iml file 4:54pm
Searched for maven junit 4:47pm
  Maven Repository: junit » junit – mvnrepository.com – Viewed 2 times
Searched for maven-surefire-plugin no tests to run 4:43pm

 

  java – Maven/Surefire finds no tests… – stackoverflow.com – Viewed 2 times 4:43pm

 

  java – Surefire is not picking up Junit… – stackoverflow.com – Viewed 2 times

 

 

About Neil Rubens

see http://ActiveIntelligence.org

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

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

*