mgrzechocinski
04/03/2019, 2:15 PMinit{}
syntax way more than lambda in constructor. AFAIR spek doesn’t have support for init{}
.
So if you guys can fix this executionError
in kotlin test runner I will be more than happy 😉sam
04/03/2019, 2:16 PMmgrzechocinski
04/03/2019, 2:20 PM3.3.2
release?sam
04/03/2019, 2:20 PMmgrzechocinski
04/03/2019, 2:21 PMmgrzechocinski
04/03/2019, 2:21 PMsam
04/03/2019, 2:21 PMsam
04/04/2019, 10:02 PMsam
04/04/2019, 10:02 PMLeoColman
04/04/2019, 10:33 PMLeoColman
04/04/2019, 10:58 PMLeoColman
04/04/2019, 10:59 PMLeoColman
04/05/2019, 12:20 AMLeoColman
04/05/2019, 12:20 AMLeoColman
04/05/2019, 12:20 AMLeoColman
04/05/2019, 12:21 AMsam
04/05/2019, 5:39 AMsam
04/05/2019, 5:42 AMsam
04/05/2019, 5:52 AMBorzdeG
04/05/2019, 8:03 AMkotlintest-extensions-system
in accordance with the latest versions of kotlintest? Now they are version 3.2.1, while the rest of the builds are already available version 3.3.2sam
04/05/2019, 8:06 AMmgrzechocinski
04/05/2019, 8:09 AM3.3.2
release. I confirm that executionError
is no longer reported. Great work!sam
04/05/2019, 8:19 AMLeoColman
04/05/2019, 12:06 PMsam
04/05/2019, 1:30 PMmgrzechocinski
04/09/2019, 5:26 AMexecutionError
which is fixed in 3.3.2
I’d like to ask about initializationError
, reported by Gradle in some specific scenario. Consider following example:
class InitErrorTest : ExpectSpec() {
init{
context("This context") {
throw RuntimeException("should fail")
}
}
}
Running this spec within IntelliJ shows that context fails with “Should fail” message.
However on Gradle it looks like this:
mypackage.InitErrorTest > mypackage.InitErrorTest > initializationError FAILED
java.lang.RuntimeException at InitErrorTest.kt:10
Is it something on the kotlintest side as well and can be fixed or am I using context { }
in a wrong way and should nest expect { }
inside?
When nesting though:
init{
context("This context") {
expect("failure"){
throw RuntimeException("should fail")
}
}
}
Gradle doesn’t show exception message:
mypackage.InitErrorTest > Expect: failure FAILED
java.lang.RuntimeException at InitErrorTest.kt:11
1 test completed, 1 failed
, however IntelliJ does.
Thanks in advance for any hints.sam
04/09/2019, 1:56 PMcontext { expect { } }
way is how it should be donesam
04/09/2019, 1:56 PMLeoColman
04/09/2019, 2:57 PMLeoColman
04/09/2019, 2:58 PMtestLogging {
events "PASSED", "FAILED", "SKIPPED", "STANDARD_ERROR", "STANDARD_OUT"
showStackTraces = true
exceptionFormat = 'full'
}