We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 434b694 commit b7a159cCopy full SHA for b7a159c
buildSrc/src/main/kotlin/datadog.configure-tests.gradle.kts
@@ -107,12 +107,11 @@ tasks.named("check") {
107
108
tasks.withType<Test>().configureEach {
109
// Flaky tests management for JUnit 5
110
- if (testFramework is JUnitPlatformOptions) {
111
- val junitPlatform = testFramework as JUnitPlatformOptions
+ (options as? JUnitPlatformOptions)?.apply {
112
if (skipFlakyTestsProvider.isPresent) {
113
- junitPlatform.excludeTags("flaky")
+ excludeTags("flaky")
114
} else if (runFlakyTestsProvider.isPresent) {
115
- junitPlatform.includeTags("flaky")
+ includeTags("flaky")
116
}
117
118
0 commit comments