From f96eeea220f596e4994e2b5fe96682cd18d52399 Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Thu, 18 Nov 2021 16:04:29 +0100 Subject: [PATCH] [web] Common config for printing test results to STDOUT --- web/benchmark-core/build.gradle.kts | 1 - web/build.gradle.kts | 12 ++++++++++++ web/compose-compiler-integration/build.gradle.kts | 1 - web/core/build.gradle.kts | 1 - web/integration-core/build.gradle.kts | 3 --- web/integration-widgets/build.gradle.kts | 1 - web/internal-web-core-runtime/build.gradle.kts | 1 - web/svg/build.gradle.kts | 1 - web/test-utils/build.gradle.kts | 1 - web/widgets/build.gradle.kts | 1 - 10 files changed, 12 insertions(+), 11 deletions(-) diff --git a/web/benchmark-core/build.gradle.kts b/web/benchmark-core/build.gradle.kts index 0f8cc7067a..956ae3d8f5 100644 --- a/web/benchmark-core/build.gradle.kts +++ b/web/benchmark-core/build.gradle.kts @@ -8,7 +8,6 @@ kotlin { js(IR) { browser() { testTask { - testLogging.showStandardStreams = true useKarma { useChromeHeadless() //useFirefox() diff --git a/web/build.gradle.kts b/web/build.gradle.kts index 32d1c56fd2..085f7dde04 100644 --- a/web/build.gradle.kts +++ b/web/build.gradle.kts @@ -1,3 +1,6 @@ +import org.gradle.api.tasks.testing.AbstractTestTask +import org.gradle.api.tasks.testing.logging.TestExceptionFormat + val COMPOSE_CORE_VERSION: String by project val COMPOSE_WEB_VERSION: String by project val COMPOSE_REPO_USERNAME: String? by project @@ -96,5 +99,14 @@ subprojects { } google() } + + tasks.withType { + testLogging { + events("FAILED") + exceptionFormat = TestExceptionFormat.FULL + showStandardStreams = true + showStackTraces = true + } + } } diff --git a/web/compose-compiler-integration/build.gradle.kts b/web/compose-compiler-integration/build.gradle.kts index 4ce8479171..014fe3c615 100644 --- a/web/compose-compiler-integration/build.gradle.kts +++ b/web/compose-compiler-integration/build.gradle.kts @@ -8,7 +8,6 @@ kotlin { js(IR) { browser() { testTask { - testLogging.showStandardStreams = true useKarma { useChromeHeadless() useFirefox() diff --git a/web/core/build.gradle.kts b/web/core/build.gradle.kts index 5246c4ac40..489abac9d7 100644 --- a/web/core/build.gradle.kts +++ b/web/core/build.gradle.kts @@ -9,7 +9,6 @@ kotlin { js(IR) { browser() { testTask { - testLogging.showStandardStreams = true useKarma { useChromeHeadless() //useFirefox() diff --git a/web/integration-core/build.gradle.kts b/web/integration-core/build.gradle.kts index 49c0a1518f..097033ab85 100644 --- a/web/integration-core/build.gradle.kts +++ b/web/integration-core/build.gradle.kts @@ -6,8 +6,6 @@ plugins { kotlin { jvm { tasks.named("jvmTest") { - testLogging.showStandardStreams = true - useJUnitPlatform() systemProperty( @@ -20,7 +18,6 @@ kotlin { js(IR) { browser() { testTask { - testLogging.showStandardStreams = true useKarma { useChromeHeadless() useFirefox() diff --git a/web/integration-widgets/build.gradle.kts b/web/integration-widgets/build.gradle.kts index 2d9c3da24b..c41575ed80 100644 --- a/web/integration-widgets/build.gradle.kts +++ b/web/integration-widgets/build.gradle.kts @@ -8,7 +8,6 @@ kotlin { js(IR) { browser() { testTask { - testLogging.showStandardStreams = true useKarma { useChromeHeadless() useFirefox() diff --git a/web/internal-web-core-runtime/build.gradle.kts b/web/internal-web-core-runtime/build.gradle.kts index 442c4e127c..78cfb25d16 100644 --- a/web/internal-web-core-runtime/build.gradle.kts +++ b/web/internal-web-core-runtime/build.gradle.kts @@ -8,7 +8,6 @@ kotlin { js(IR) { browser() { testTask { - testLogging.showStandardStreams = true useKarma { useChromeHeadless() useFirefox() diff --git a/web/svg/build.gradle.kts b/web/svg/build.gradle.kts index 31e49f0cf7..f4ffe8bd75 100644 --- a/web/svg/build.gradle.kts +++ b/web/svg/build.gradle.kts @@ -8,7 +8,6 @@ kotlin { js(IR) { browser() { testTask { - testLogging.showStandardStreams = true useKarma { useChromeHeadless() } diff --git a/web/test-utils/build.gradle.kts b/web/test-utils/build.gradle.kts index 6bf70113a6..5ed41c1a16 100644 --- a/web/test-utils/build.gradle.kts +++ b/web/test-utils/build.gradle.kts @@ -12,7 +12,6 @@ kotlin { js(IR) { browser() { testTask { - testLogging.showStandardStreams = true useKarma { useChromeHeadless() useFirefox() diff --git a/web/widgets/build.gradle.kts b/web/widgets/build.gradle.kts index 591af75eaa..f417f37de5 100644 --- a/web/widgets/build.gradle.kts +++ b/web/widgets/build.gradle.kts @@ -9,7 +9,6 @@ kotlin { js(IR) { browser() { testTask { - testLogging.showStandardStreams = true useKarma { useChromeHeadless() useFirefox()