Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build-logic/src/main/kotlin/BuildLogicKotlinJvmPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class BuildLogicKotlinJvmPlugin : Plugin<Project> {
compilerOptions {
// WORKAROUND: Disable until KLIB resolver warnings can be suppressed or no longer appear.
// See also: https://youtrack.jetbrains.com/issue/KT-78277
// freeCompilerArgs.addAll("-Werror")
// freeCompilerArgs.add("-Werror")
freeCompilerArgs.addAll("-Xreturn-value-checker=full", "-XXLanguage:+UnnamedLocalVariables")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class BuildLogicKotlinMultiplatformPlugin : Plugin<Project> {
kotlin.compilerOptions {
// WORKAROUND: Disable until KLIB resolver warnings can be suppressed or no longer appear.
// See also: https://youtrack.jetbrains.com/issue/KT-78277
// freeCompilerArgs.addAll("-Werror")
// freeCompilerArgs.add("-Werror")
freeCompilerArgs.addAll("-Xreturn-value-checker=full", "-XXLanguage:+UnnamedLocalVariables")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@ public interface TestSuiteScope {
testConfig: TestConfig = TestConfig,
content: TestSuite.() -> Unit
) {
TestSuite(testSuiteInScope, name = name, displayName = displayName, testConfig = testConfig, content = content)
val _ =
TestSuite(
testSuiteInScope,
name = name,
displayName = displayName,
testConfig = testConfig,
content = content
)
}

/**
Expand All @@ -41,7 +48,7 @@ public interface TestSuiteScope {
testConfig: TestConfig = TestConfig,
action: suspend Test.ExecutionScope.() -> Unit
) {
Test(testSuiteInScope, name = name, displayName = displayName, testConfig = testConfig, action)
val _ = Test(testSuiteInScope, name = name, displayName = displayName, testConfig = testConfig, action)
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ internal fun initializeTestFramework(testSession: AbstractTestSession? = null, a
if (!arguments.isNullOrEmpty()) {
argumentsBasedElementSelection = ArgumentsBasedElementSelection(arguments)
}
if (testSession == null) TestSession()
if (testSession == null) {
val _ = TestSession()
}
}

/**
Expand Down