I’m developing our new gradle based build system. I have no problems running this command:
gradle -Dtest.single=InboundMessageHandlerServiceTest :import:importservices:test
Our developers don’t install gradle, but use the gradlewrapper instead. They (and I) can’t run the command above with gradlew, as they get this error:
...
...
:buildSrc:remoteservice:compileJava UP-TO-DATE
:buildSrc:remoteservice:compileGroovy
:buildSrc:remoteservice:processResources
:buildSrc:remoteservice:classes
:buildSrc:remoteservice:jar
:buildSrc:stiboosgi:compileJava UP-TO-DATE
:buildSrc:stiboosgi:compileGroovy
:buildSrc:stiboosgi:miniBndJar
:buildSrc:stiboosgi:processResources
:buildSrc:stiboosgi:classes
:buildSrc:stiboosgi:jar
:buildSrc:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> Failed to notify test listener.
> Could not find matching test for pattern: InboundMessageHandlerServiceTest
The detailed logs for both runs are here: https://gist.github.com/anonymous/5459326
If I run the ‘proper’ gradle first, the gradle wrapper will happily build and run the tests.