Merge pull request #955 from wordhou/mocha-test-runner-sample-settings

Show more than first line when using mocha test runner
This commit is contained in:
Robert Stoll
2021-07-14 09:57:56 +02:00
committed by GitHub

View File

@@ -1,6 +1,8 @@
// Example project to show how to use Atrium in combination with mocha
// For more information on how to setup Atrium for a JS project -> https://github.com/robstoll/atrium#js
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
// for infix-api -> change to 'atrium-infix-en_GB-js'
val atriumApi = "atrium-fluent-en_GB-js"
val atriumVersion = "0.16.0"
@@ -28,6 +30,15 @@ version = "0.0.1"
kotlin {
js {
nodejs()
nodejs {
testTask {
testLogging {
exceptionFormat = TestExceptionFormat.FULL // Show full exception when an assertion fails
showExceptions = true // defaults to true
showCauses = true // defaults to true
showStackTraces = true // defaults to true
}
}
}
}
}