Why does Intellij IDEA suddenly not recognize tests in test folder anymore?

后端 未结 13 2374
深忆病人
深忆病人 2021-02-01 02:26

I\'m using JUnit since I started this project and everything works just fine. I have a couple of hundreds tests, and of course, here and there I start them all. Right click on r

13条回答
  •  广开言路
    2021-02-01 02:43

    Have a try changing a JUnit dependency version. One release forward or backwards. It can help invalidate test cache.

    If you use a dependency management tool such as Maven or Gradle, go to the .pom or .gradle file and change the version of the JUnit library.

    For instance change 4.11 to 4.12 or 4.10 in the version section:

    
        
          junit
          junit
          
          4.11
          test
       
    
    

提交回复
热议问题