We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 720e294 commit 797ecb2Copy full SHA for 797ecb2
1 file changed
build-logic/src/main/groovy/buildlogic.java-special-tests-conventions.gradle
@@ -26,6 +26,16 @@ special.forEach { tag ->
26
}
27
28
29
+// any test task that does not end with Npm should exclude all the npm tests
30
+tasks.withType(Test).configureEach { Test task ->
31
+ if (!task.name.toLowerCase().endsWith('npm')) {
32
+ def toExclude = special.findAll { it.toLowerCase().endsWith('npm') }.join('|')
33
+ task.useJUnitPlatform {
34
+ excludeTags toExclude
35
+ }
36
37
+}
38
+
39
tasks.register('testAll') {
40
dependsOn tasks.matching { it.name.startsWith('test') && it.name != 'testAll' }
41
0 commit comments