is spek2 complaining when an exception occurs during the lookup of tests? spek1 doesn't as far as I can tell and it is sometimes quite annoying. You get a green build because no tests were executed at all
r
raniejade
11/26/2018, 9:43 AM
Any exceptions will be propagated upstream, so it's up to junit5 on how it reacts. I think it just logs any failure as a warning.
a
artem_zin
11/26/2018, 6:26 PM
@robstoll can you give an example? Maybe as an issue on spek repo, we'd love to track that and maybe propagate to JUnit team if that's not configurable
r
robstoll
11/26/2018, 9:51 PM
Junit5 does not complain if no tests were found. You can use a flag in the Console-Runner as far as I remember. for reproduction:
Copy code
object A : Spek ({
throw IllegalStateException()
})