https://kotlinlang.org logo
Title
s

Steve RB

03/21/2020, 10:37 AM
Hey folks, I've just started using kotest and had a question: • Has anyone been able to get the "<Click to see difference>" dialog with diff window to appear when an assertion fails using intellij? This diff window is super helpful when doing a "foo" shouldBe "bar". This seems to work with the core kotlin.test assertEquals method but the shouldBe, etc all seem to throw a too generic AssertionError which intellij doesn't seem to be able to understand. Any help would be much appreciated
s

sam

03/21/2020, 2:01 PM
Which version
s

Steve RB

03/23/2020, 8:44 AM
I have been testing version 3.4.2. @sam
s

sam

03/23/2020, 1:44 PM
Try 4.0.0. I fixed this after you posted.
s

Steve RB

03/23/2020, 7:10 PM
Hey @sam thanks for fixing that. I'm now trying to run my tests with the new version but intellij seems to hang on the test stage after printing the below:
~~~ Kotest Configuration ~~~
-> Parallelism: 1 thread(s)
-> Default test timeout: 600000ms
-> Default test order: TestCaseOrder
-> Default isolation mode: IsolationMode
-> Global soft assertations: False
-> Write spec failure file: False
-> Fail on ignored tests: False
-> Spec execution order: LexicographicSpecExecutionOrder
-> Extensions
  - io.kotest.core.extensions.SystemPropertyTagExtension
  - io.kotest.core.extensions.RuntimeTagExtension
  - io.kotest.core.extensions.TagFilteredDiscoveryExtension
s

sam

03/23/2020, 7:53 PM
You need gradle 6
you should just be able to bump the version in your gradle wrapper properties
s

Steve RB

03/24/2020, 8:21 AM
Thanks @sam I didn't see that anywhere on the readme and it actually mentions version 4.6. Is it worth updating the readme to include this?
s

sam

03/24/2020, 11:44 AM
Yes definitely