Gradle, js, karma: don't run karma if no browsers configured
#KT-31662 Fixed
This commit is contained in:
+4
@@ -191,6 +191,10 @@ class KotlinKarma(override val compilation: KotlinJsCompilation) : KotlinJsTestF
|
|||||||
forkOptions: ProcessForkOptions,
|
forkOptions: ProcessForkOptions,
|
||||||
nodeJsArgs: MutableList<String>
|
nodeJsArgs: MutableList<String>
|
||||||
): TCServiceMessagesTestExecutionSpec {
|
): TCServiceMessagesTestExecutionSpec {
|
||||||
|
if (config.browsers.isEmpty()) {
|
||||||
|
error("No browsers configured for $task")
|
||||||
|
}
|
||||||
|
|
||||||
val clientSettings = TCServiceMessagesClientSettings(
|
val clientSettings = TCServiceMessagesClientSettings(
|
||||||
task.name,
|
task.name,
|
||||||
testNameSuffix = task.targetName,
|
testNameSuffix = task.targetName,
|
||||||
|
|||||||
Reference in New Issue
Block a user