mardi 13 septembre 2016

How NOT to skip tests in my maven test project?

I have created a maven project, it has a number of classes inside it. Each class has test methods, and these are annotated with @Test, and each method starts with "test.." string. I can individually run the java file over Junit, and can see the result(red.green and similar details).

What I want is, to run all the tests in all the java files, in single go.

I have tried "mvn test" command. But when I run it, this shows "Tests are skipped" and when i try to add below to surefire plugin, I get error that this is not supported.

<skip>false</skip>

also tried
mvn test -Dmaven.test.skip=false but it also performed in similar manner

Aucun commentaire:

Enregistrer un commentaire