Reputation: 7759
I want to exclude some tests from a (pretty standard) Java gradle project (which works using an exclude
in the test section), but allow explicit execution of the excluded tests via -Dtest.single
. Currently, the exclude also prevents executing specific tests via -Dtest.single
.
Upvotes: 0
Views: 80
Reputation: 84854
I don't know if such mechanism exits - from looking at the docs I see it's not.
A possible workaround is to configure exclusion via -Dtest.single
property. If given test is passed via this switch, just don't exclude it.
Upvotes: 1