https://kotlinlang.org logo
#kotest
Title
# kotest
m

mitch

02/16/2022, 10:23 AM
@sam halp have you seen anything like this before?
Copy code
org.junit.platform.commons.JUnitException: TestEngine with ID 'kotest' failed to execute tests
Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!
junit annoyingly also swallowed the stacktrace so i need to figure out how to enable it. it also doesn’t consistently happen.
s

sam

02/16/2022, 11:00 AM
Sounds like a custom comparator
m

mitch

02/16/2022, 11:15 AM
looking
i can’t find any custom comparator in that project.. also trying to check in junit or kotest.
hmm i can’t see anything wrong in kotest either. must be something in that project. i’ll try enabling stack trace and get back to you
Thanks Sam!
@sam i think i found the culprit.. i’ve raised an issue there https://github.com/kotest/kotest/issues/2839
and also raised a PR with the fix
s

sam

02/21/2022, 11:38 AM
cool. Will merge once green. I think later this week I can make a 5.1.1 release with this.
🙇‍♂️ 1
maybe a 5.0.4 too
m

mitch

02/21/2022, 11:51 AM
Thanks heaps Sam!
👍🏻 1
22 Views