I have written almost 50 test cases using Spock framework for my java application. When I try to build my application, my spock unit tests are not running. Also build was not showing up any errors related to these test cases.
Here are the test results that are published from Jenkins log :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.201 sec
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
I have the following plug in configuration in my pom.xml
**Issue got resolved by adding the following gmavenplus plugin.**
> <plugin> <groupId>org.codehaus.gmavenplus</groupId>
> <artifactId>gmavenplus-plugin</artifactId> <version>1.5</version>
> <executions> <execution> <goals> <goal>compile</goal>
> <goal>testCompile</goal> </goals> </execution> </executions> </plugin>
I had the same issue and the solution given in update section worked for me.