Hey folks, I've just started using kotest and had ...
# kotest
s
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
Which version
s
I have been testing version 3.4.2. @sam
s
Try 4.0.0. I fixed this after you posted.
s
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:
Copy code
~~~ 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
You need gradle 6
you should just be able to bump the version in your gradle wrapper properties
s
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
Yes definitely