Fail the build if no tests are executed


(Caleb Cushing) #1

currently I’ve been doing some major upgrades, Spring Boot 1 -> 2 and Junit 4 -> 5 more than once I’ve seen a gradle build pass, only to find out it hadn’t run tests for some reason at all, once it was because I hadn’t put useJunitPlatform() but now I’ve seen other times, I think a dependency is wrong or something… and then the test suite isn’t running. I’m not sure. Thing is, if anything is wrong with the build I want it to fail.