I am using Maven. Tests are written in TestNG and all test methods have @Test annotation to it.
Problem is, not all test class name contains "Test" in it. So all test Methods are not detected. I don't have option to modify the names of all classes.
So like in Ant where we can specify
Do you have any such option for Maven ?
Unfortunately, there's no such option in a Maven plugin. However, I think there is a way to workaround it. Clover's test detector looks for the following class and method patterns to determine whether it's a test or not:
As you can see in the article above, if you add a JavaDoc tag named "@testng.test" to a class, Clover should recognize it as a test one.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs