We run TestNG tests using Gradle on Jenkins .
Job Configuration:
Assembly section → Call Gradle Script → Use Gradle Wrapper → Tasks:
clean test -Dgroups=myTestNGTestGroupName
In Jenkins Console gradlew.bat I see logs running gradlew.bat with certain parameters (one of them is -Dgroups=myTestNGTestGroupName )).
We have quite a few Jenkins tests and Selenium automation.
Since then, every day we check only unsuccessful tasks.
During the TestNG refactoring tests, the group name may change or a typo may occur.
If you changed the name of the test group in the test repository and forgot to update the Jenkins task:
0 tests are performed and work continues ( successfully completed ).
How can I tell Jenkins note that the assembly failed if no tests were performed?
drets source share