[web] Common config for printing test results to STDOUT

This commit is contained in:
Shagen Ogandzhanian
2021-11-18 16:04:29 +01:00
parent f7728a004f
commit f96eeea220
10 changed files with 12 additions and 11 deletions

View File

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

View File

@@ -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<AbstractTestTask> {
testLogging {
events("FAILED")
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
showStackTraces = true
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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