jeudi 27 juin 2019

'No JUnit tests found' when using Mockito in Spring Tool Suite

When I try to run the tests that contains Mocks from Mockito on Spring Tool Suite 4 (and Eclipse 2019-06) using 'Run As > JUnit Test', I get the following error: "No JUnit test found".

I have no problem running the tests on 'Run As > Gradle Test'.

If the class tests have no @Mock annotation it also works without a problem, when the annotation is added I begin to get this error when trying to run as JUnit Test.

Any idea about what the problem might be?

Aucun commentaire:

Enregistrer un commentaire