Full stack trace in tests

This commit is contained in:
Ugljesa Jovanovic 2021-01-05 10:46:43 +01:00
parent c0a3bd322d
commit 69183a0eb9
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F
3 changed files with 21 additions and 5 deletions

View File

@ -20,6 +20,7 @@
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import org.jetbrains.kotlin.gradle.targets.js.testing.KotlinJsTest
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeTest
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.dokka.Platform
plugins {
@ -628,6 +629,9 @@ tasks {
val jvmTest by getting(Test::class) {
testLogging {
events("PASSED", "FAILED", "SKIPPED")
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
showStackTraces = true
}
}
@ -635,14 +639,18 @@ tasks {
testLogging {
events("PASSED", "FAILED", "SKIPPED")
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
showStackTraces = true
}
}
val jsNodeTest by getting(KotlinJsTest::class) {
testLogging {
events("PASSED", "FAILED", "SKIPPED")
// showStandardStreams = true
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
showStackTraces = true
}
}

View File

@ -0,0 +1,6 @@
# Package com.ionspin.kotlin.crypto.generichash
## Generic hash
Generic hash package provides a easy to use

View File

@ -19,6 +19,7 @@
import org.jetbrains.kotlin.gradle.targets.js.testing.KotlinJsTest
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeTest
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask
plugins {
@ -68,21 +69,20 @@ kotlin {
}
testTask {
enabled = false //Until I sort out testing on travis
useKarma {
useChrome()
}
}
}
nodejs {
testTask {
useMocha() {
timeout = "10s"
}
}
}
binaries.executable()
// binaries.executable()
}
@ -476,7 +476,9 @@ tasks {
testLogging {
events("PASSED", "FAILED", "SKIPPED")
// showStandardStreams = true
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
showStackTraces = true
}
}