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.
phil-t
11/09/2020, 11:34 AM
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
sam
11/09/2020, 12:18 PM
There's no way to set it globally with exceptions atm
sam
11/09/2020, 12:18 PM
If you want to create a ticket it can be added
p
phil-t
11/09/2020, 12:19 PM
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".