@@ -7,10 +7,6 @@ import org.gradle.api.plugins.jvm.JvmTestSuite
77import java.time.Duration
88import java.time.temporal.ChronoUnit
99
10- val isTestingInstrumentation = providers.provider {
11- project.findProperty(" testingInstrumentation" ) as ? Boolean ? : false
12- }
13-
1410// Need concrete implementation of BuildService in Kotlin
1511abstract class ForkedTestLimit : BuildService <BuildServiceParameters .None >
1612// Forked tests will fail with OOM if the memory is set too high. Gitlab allows at least a limit of 3.
@@ -43,25 +39,6 @@ tasks.withType<Test>().configureEach {
4339 ! rootProject.providers.gradleProperty(" rerun.tests.${project.name} " ).isPresent
4440 }
4541
46- // Avoid executing classes used to test testing frameworks instrumentation
47- if (isTestingInstrumentation.get()) {
48- exclude(" **/TestAssumption*" , " **/TestSuiteSetUpAssumption*" )
49- exclude(" **/TestDisableTestTrace*" )
50- exclude(" **/TestError*" )
51- exclude(" **/TestFactory*" )
52- exclude(" **/TestFailed*" )
53- exclude(" **/TestFailedWithSuccessPercentage*" )
54- exclude(" **/TestInheritance*" , " **/BaseTestInheritance*" )
55- exclude(" **/TestParameterized*" )
56- exclude(" **/TestRepeated*" )
57- exclude(" **/TestSkipped*" )
58- exclude(" **/TestSkippedClass*" )
59- exclude(" **/TestSucceed*" )
60- exclude(" **/TestTemplate*" )
61- exclude(" **/TestUnskippable*" )
62- exclude(" **/TestWithSetup*" )
63- }
64-
6542 // Split up tests that want to run forked in their own separate JVM for generated tasks
6643 if (name.startsWith(" forkedTest" ) || name.endsWith(" ForkedTest" )) {
6744 setExcludes(emptyList())
0 commit comments