-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin 1.5.0 - TestSuiteExecutionException testing function with "when" and enum #967
Comments
Weird and interesting at the same time. Have you tried disabling the new IR backend compiler? |
@raniejade is the IR compiler just for targeting JS? I am using JVM |
@ryanelliott-wk There's an IR backend for JVM as well which was made the default in Kotlin 1.5 |
I see the same exception with Here are my compiler options:
|
I just run the test you provided with Kotlin 1.5.0 – works fine for me... |
Interesting thanks @ntoskrnl! Maybe some caching issues? Have you tried doing a clean build @ryanelliott-wk ? |
Thanks for trying it out @ntoskrnl! @raniejade I'm still having the issue with a clean build. I'll try to do a more standalone reproduction - maybe there is another dependency somewhere in my project that is contributing to the issue. |
Tests fail unexpectedly with a
TestSuiteExecutionException
after upgrading to Kotlin v1.5.0 using Spek v2.0.15. This happens when using an Enum and awhen
statement. Here is an example to reproduce:and the test:
Which produces this exception:
Click to expand
The function works as expected without any errors when called in the application. It also works just fine in a kotlin-test:
I can convert the
when
statement to anif
statement as a workaround.The text was updated successfully, but these errors were encountered: