I've set `globalAssertSoftly` to true for my tests...
# kotest
p
I've set
globalAssertSoftly
to true for my tests but have found a situation where I don't want to use this - is there a way to not use soft assertions for an individual test, or to stop the test after a specific assertion? I've tried
exitProcess(0)
but this leads to the test being terminated without any information about the assertion.
I've found a possible solution which is to throw an exception in the one place where I have this problem, instead of using a kotest assertion. I'd still be interested if there is a way to temporarily disable soft assertions though.
s
There's no way to set it globally with exceptions atm
If you want to create a ticket it can be added
p
It's ok, I'm happy with my workaround. I think it's one of those things where you can choose to override the default behaviour but it's "at your own risk".