From 24672bced107a248f77dc25db27a862a67f906e6 Mon Sep 17 00:00:00 2001 From: Ed Date: Tue, 13 Jul 2021 13:00:41 -0700 Subject: [PATCH 1/2] Show more than first line when using mocha test runner --- samples/js/build.gradle.kts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/samples/js/build.gradle.kts b/samples/js/build.gradle.kts index e4050285d..801ed7cd6 100644 --- a/samples/js/build.gradle.kts +++ b/samples/js/build.gradle.kts @@ -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,12 @@ version = "0.0.1" kotlin { js { - nodejs() + nodejs { + testTask { + testLogging { + exceptionFormat = TestExceptionFormat.FULL // Show full exception when an assertion fails + } + } + } } } From 8599fd8d8fa3d9bd39d40f2b2dd254a1dc5ecf22 Mon Sep 17 00:00:00 2001 From: Ed Date: Tue, 13 Jul 2021 15:29:52 -0700 Subject: [PATCH 2/2] Add comments noting default testLogging settings --- samples/js/build.gradle.kts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/js/build.gradle.kts b/samples/js/build.gradle.kts index 801ed7cd6..ad1c044a2 100644 --- a/samples/js/build.gradle.kts +++ b/samples/js/build.gradle.kts @@ -34,6 +34,9 @@ kotlin { 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 } } }