No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
manpreet
Best Answer
2 years ago
I have a maven program, it compiles fine. When I run
mvn test
it does not run any tests (under TESTs header saysThere are no tests">tests to run.
).I've recreated this problem with a super simple setup which I will include below as well as the output when run with
-X
.The unit tests run fine from eclipse (both with its default junit package and when I instead include the junit.jar downloaded by maven). Also mvn
test-compile
correctly creates the class under test-classes. I am running this on OSX 10.6.7 with Maven 3.0.2 and java 1.6.0_24.Here is the directory structure:
pom.xml:
ClassUnderTest.java:
ClassUnderTestTests.java: