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

SimonT

06/17/2022, 9:00 AM
Hello everyone. I wanted to ask you something related to Kotest. I have been having issues lately that when I run my unit tests with kotest everything is green, but if I explore the builds I get some errors but I can't know about the build errors unless I explore the build output on my tests. I noticed that my tests failed in the CI that's how I discovered this issue. In the few places that this happened was because the class had some code in the init block. I wanted to know if there exists any flag or any way to make the tests fail locally so I know there are issues before running the CI. Thank you in advance.
l

LeoColman

06/17/2022, 11:59 AM
Could you give us a sample on what kind of test isn't reporting as failure locally?
s

SimonT

06/17/2022, 8:13 PM
I will try to create a simple example and share it tomorrow
Hello this is the simples similar example I managed to create of a test that should fail bit is full green but if we check the build output we see the error
First one is a test and classes that shouldn't pass because the coevery should be done by fore calling the sut function, but they are still green, and unless I check the build output or run the tests in the CI I can't know that something doesn't work
The second link is the build output
2 Views