https://kotlinlang.org logo
Title
a

ayodele

04/02/2023, 12:38 PM
Guys, what test framework do you use for Kotlin Multiplatform especially testing against Kotlin/JS Kotlin test is really frustrating me. In-between running tests I get some weird errors like heap space issue, it works when I rerun the tests.(can manage) But right now, my commonTests are cached, even though I changed the test code, I get outputs from old deleted codes. Any help regarding testing??
b

Big Chungus

04/02/2023, 12:53 PM
Kotest works on js, but you lose test filtering capability and ide integration
I've used a few 3p test frameworks in the past, but eventually came back to kotlin.test as it's the only one that reliably works on all platforms and integrates with the IDE consistently
a

ayodele

04/02/2023, 12:55 PM
Yeah me too. Have you experienced it caching your tests??
b

Big Chungus

04/02/2023, 1:02 PM
Not yet, fortunately
m

Mike Dawson

04/02/2023, 1:28 PM
I have also experienced the cached test result issue on JS
a

ayodele

04/02/2023, 3:41 PM
Really? We're you able to find the cause?
m

Mike Dawson

04/02/2023, 3:42 PM
Sorry, no I wasn't. To be honest I would just clean and run again. I also resorted to making a separate module for manual testing.