I had the same problem now with testing code. That was caused in spring boot because of the @RunWith
annotation. I have used:
@RunWith(SpringRunner.class)
With that annotation there is JUnit Vintage running which can't find any tests and gives you the error. I have removed that and only JUnit Jupiter is running and everything is fine.