No tests found for given includes:

18,874

Ok, I've found an answer. On my Test class, I have @Category annotation. If I remove that one, my tests work, but I still don't know why. For example, on my colleague's IDE, same tests, but with @Category annotation work. It's a bit frustrating.

But, thanks for such a fast responses.

Share:
18,874
OGI
Author by

OGI

Updated on June 07, 2022

Comments

  • OGI
    OGI about 2 years

    I'm trying to run a simple test that's in my Test class from IDE (Intellij IDEA) and error that pops out is:

    No tests found for given includes: org.sample.Test.test
    

    Same thing is happening when I try to run it from command-line. In Intellij, I've set up Build, Execution, Deployment > Build Tools > Gradle > Runner to Gradle Test Runner and I have @Test on my method. Also, I can't run any test (from some other project), so I suppose that it's some configuration problem.

    Can someone point me to something, what can I be doing wrong ?