Skip to content

Commit 1d01e54

Browse files
committed
Gradle can now ignore unit tests matching a pattern
To temporarily ignore unit tests matching a specific pattern, run gradle like this: gradle test -PexcludeTests="*pqc*" This example ignores the pqc unit tests; any pattern that matches a fully qualified class name will work.
1 parent cf490aa commit 1d01e54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ subprojects {
190190

191191
filter {
192192
includeTestsMatching "AllTest*"
193+
if (project.hasProperty('excludeTests')) {
194+
excludeTestsMatching "${excludeTests}"
195+
}
193196
}
194197
}
195198

0 commit comments

Comments
 (0)