[GRADLE-2348] test.single does not work when using an init-script Created: 13/Jun/12  Updated: 17/Jan/14  Resolved: 17/Jan/14

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Gradle Forums Assignee: Unassigned
Resolution: Not A Bug Votes: 1


 Description   

I'm using the java plugin and I'd like to run only a single junit test.

There's a init-script in the init.d folder and when executing "gradle -Dsingle.test=blabla test", it runs all the tests. I experience the same behavior when using --init-script instead.
If I move everything from the init-script to the build.gradle, then single.test works properly.

Sadly, the workaround suggested here GRADLE-1553 does not work for me.



 Comments   
Comment by Adam Murdoch [ 13/Jun/12 ]

Is it a typo above, where you say you are using '-Dsingle.test'? You should be using '-Dtest.single'.

Generated at Wed Jun 30 12:19:27 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.