Maven2 compiles my tests, but doesn't run them
Posted
by Vincenzo
on Stack Overflow
See other posts from Stack Overflow
or by Vincenzo
Published on 2010-05-23T16:23:37Z
Indexed on
2010/05/23
16:30 UTC
Read the original article
Hit count: 315
I have a simple Maven2 project with tests written for TestNG. When I say mvn test
Maven2 compiles my test, but don't run them. I already checked this page: http://maven.apache.org/general.html#test-property-name. This is not my case.
Anybody can help?
My directory structure:
pom.xml
src
main
java
com ...
test
java
com ...
target
classes <— .class files go there
test-classes <— .class files with tests go there
This is what I see if I run mvn -X test
(end of the log):
...
[INFO] Surefire report directory: <mydir>/target/surefire-reports
Forking command line: /bin/sh -c cd <mydir> && /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -jar /var/folders/+j/+jAx0g2xGA8-Ns9lWNOWgk+++TM/-Tmp-/surefirebooter7645642850235508331.jar /var/folders/+j/+jAx0g2xGA8-Ns9lWNOWgk+++TM/-Tmp-/surefire4544000548243268568tmp /var/folders/+j/+jAx0g2xGA8-Ns9lWNOWgk+++TM/-Tmp-/surefire7481499683857473873tmp
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.191 sec
© Stack Overflow or respective owner