mardi 14 mars 2017

Maven test finds but not executes tests

I have some test-classes under the folder src/test/java (some of these having name ending by *Test). Each class has some methods annotated with @Test
Running these tests with JUnit (on Eclipse, right click on the class, then run as, the JUnit Test) I have no problems. But I want to run these tests using mvn test.
The problem is that I obtain always this: enter image description here

It seems that mvn finds the tests, but it doesn't execute them. Why?
Furthermore, it seems that also classes having a name that doesn't end with *Test are considered by Maven.

This is part of my pom.xml:

enter image description here

And this is part of my effective pom:

enter image description here

Aucun commentaire:

Enregistrer un commentaire