Reputation: 7749
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: 77
Reputation: 84756
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