Skip to content
Advertisement

Maven doesn’t run my testng.xml

When i’m running through testng.xml (right click on testng.xml, then run as TestNG) it works fine – 2 of the tests i have there are running, but when i’m running it from Maven (mvn test) it just perform build and doesn’t run the tests. BTW – i noticed that if i have classes with the word Test in them they are running by default on Maven, but this is not good for me since i need the ability to control the tests through the testng.xml file.

this is my pom.xml:

JavaScript

This is my testng.xml:

JavaScript

Advertisement

Answer

Can you just remove profile and try with build plugin

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement