Browse Source

[web] Common config for printing test results to STDOUT

pull/1420/head
Shagen Ogandzhanian 3 years ago
parent
commit
f96eeea220
  1. 1
      web/benchmark-core/build.gradle.kts
  2. 12
      web/build.gradle.kts
  3. 1
      web/compose-compiler-integration/build.gradle.kts
  4. 1
      web/core/build.gradle.kts
  5. 3
      web/integration-core/build.gradle.kts
  6. 1
      web/integration-widgets/build.gradle.kts
  7. 1
      web/internal-web-core-runtime/build.gradle.kts
  8. 1
      web/svg/build.gradle.kts
  9. 1
      web/test-utils/build.gradle.kts
  10. 1
      web/widgets/build.gradle.kts

1
web/benchmark-core/build.gradle.kts

@ -8,7 +8,6 @@ kotlin {
js(IR) { js(IR) {
browser() { browser() {
testTask { testTask {
testLogging.showStandardStreams = true
useKarma { useKarma {
useChromeHeadless() useChromeHeadless()
//useFirefox() //useFirefox()

12
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_CORE_VERSION: String by project
val COMPOSE_WEB_VERSION: String by project val COMPOSE_WEB_VERSION: String by project
val COMPOSE_REPO_USERNAME: String? by project val COMPOSE_REPO_USERNAME: String? by project
@ -96,5 +99,14 @@ subprojects {
} }
google() google()
} }
tasks.withType<AbstractTestTask> {
testLogging {
events("FAILED")
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
showStackTraces = true
}
}
} }

1
web/compose-compiler-integration/build.gradle.kts

@ -8,7 +8,6 @@ kotlin {
js(IR) { js(IR) {
browser() { browser() {
testTask { testTask {
testLogging.showStandardStreams = true
useKarma { useKarma {
useChromeHeadless() useChromeHeadless()
useFirefox() useFirefox()

1
web/core/build.gradle.kts

@ -9,7 +9,6 @@ kotlin {
js(IR) { js(IR) {
browser() { browser() {
testTask { testTask {
testLogging.showStandardStreams = true
useKarma { useKarma {
useChromeHeadless() useChromeHeadless()
//useFirefox() //useFirefox()

3
web/integration-core/build.gradle.kts

@ -6,8 +6,6 @@ plugins {
kotlin { kotlin {
jvm { jvm {
tasks.named<Test>("jvmTest") { tasks.named<Test>("jvmTest") {
testLogging.showStandardStreams = true
useJUnitPlatform() useJUnitPlatform()
systemProperty( systemProperty(
@ -20,7 +18,6 @@ kotlin {
js(IR) { js(IR) {
browser() { browser() {
testTask { testTask {
testLogging.showStandardStreams = true
useKarma { useKarma {
useChromeHeadless() useChromeHeadless()
useFirefox() useFirefox()

1
web/integration-widgets/build.gradle.kts

@ -8,7 +8,6 @@ kotlin {
js(IR) { js(IR) {
browser() { browser() {
testTask { testTask {
testLogging.showStandardStreams = true
useKarma { useKarma {
useChromeHeadless() useChromeHeadless()
useFirefox() useFirefox()

1
web/internal-web-core-runtime/build.gradle.kts

@ -8,7 +8,6 @@ kotlin {
js(IR) { js(IR) {
browser() { browser() {
testTask { testTask {
testLogging.showStandardStreams = true
useKarma { useKarma {
useChromeHeadless() useChromeHeadless()
useFirefox() useFirefox()

1
web/svg/build.gradle.kts

@ -8,7 +8,6 @@ kotlin {
js(IR) { js(IR) {
browser() { browser() {
testTask { testTask {
testLogging.showStandardStreams = true
useKarma { useKarma {
useChromeHeadless() useChromeHeadless()
} }

1
web/test-utils/build.gradle.kts

@ -12,7 +12,6 @@ kotlin {
js(IR) { js(IR) {
browser() { browser() {
testTask { testTask {
testLogging.showStandardStreams = true
useKarma { useKarma {
useChromeHeadless() useChromeHeadless()
useFirefox() useFirefox()

1
web/widgets/build.gradle.kts

@ -9,7 +9,6 @@ kotlin {
js(IR) { js(IR) {
browser() { browser() {
testTask { testTask {
testLogging.showStandardStreams = true
useKarma { useKarma {
useChromeHeadless() useChromeHeadless()
useFirefox() useFirefox()

Loading…
Cancel
Save