saucelabs / sauce-java

A set of helpers for consuming Sauce Labs services from Java
Apache License 2.0
45 stars 61 forks source link

Unit tests and code coverage not executing for new test class #72

Closed nadvolod closed 5 years ago

nadvolod commented 5 years ago

I added a new class called SauceHelperTests in com.saucelabs.common. This class has some unit tests. The unit tests are not executing and code coverage isn't picking them up. Looks like we need to make some update to the CI build configuration.

nadvolod commented 5 years ago

@joshgrantsauce do you know how to resolve that issue? What do I have to do?

joshgrantsauce commented 5 years ago

@nadvolod looks like the root pom.xml doesn't find the subproject tests. There's probably a few ways to fix this. I'd try updating the root pom.xml to look through the all subprojects but I'll see what the best approach is here.

nikolay-advolodkin commented 5 years ago

Issue resolved. It had to do with the naming convention of the files. https://stackoverflow.com/questions/6178583/maven-does-not-find-junit-tests-to-run