IDEA shows the option to only run previously faile...
# kotest
j
IDEA shows the option to only run previously failed tests, but my tests are progressive/dependent on eachother. Is there a way to disable this / ensure all tests always run?
s
Can you show a screenshot
m
just don’t click it 🙂 — on a side note if your tests are not independent one from another, you have a problem
j
@sam currently grayed out because all tests passed
s
Can you make a ticket for it
j
@Matteo Mirk I have a large number of tests that work on the same data objects. Each test can be run individually without issue, but I'm also tracking all accesses to said data objects, to verify only the correct backing memory is touched (long story). That part needs all the tests to run, or the result will always be a pass. You can't use nested tests in Kotlin/JS, the only other way I can see to solve this is duplicating a lot of test code or making some function spaghetti that doesn't look quite nice. If you have a better suggestion, I'm all ears.
s
thank you
m
@Jorrit okay, understood your scenario — more or less. So the problem is that when doing subsequent test runs, intellij will not run them all but only the failed ones? Weird, it never happened to me, maybe it’s something specific to kotest plugin.
j
It doesn't automatically do it no, you have to push that button specifically. But I'm writing a lib and it might lead to confusion. It's not a major issue, just checking if there's a way to disable/force
m
I got it, thanks for clarifying. Sorry, there’s no way to disable that button. The only thing you can do is document this aspect for developers contributing to your library.