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

后端 未结 13 2094
深忆病人
深忆病人 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 03:02

    I ran into this issue with Ubuntu 20.04, Java 11.0.8-zulu, and Intellij 2020.2.

    Upgrading Junit from 5.5.2 to 5.6.2 and Junit Platform from 1.5.2 to 1.6.2 solved it for me.

    That seemed odd to me, so I switched the versions back, which now also works. I think some sort of cache invalidation is likely the best explanation, albeit the corresponding button for this didn't work for me.

    So basically, what is said here https://stackoverflow.com/a/58687202/6476706 (I tried to comment there but can't...).

    Anyway, still an issue in 2020, maybe this helps someone.

    0 讨论(0)
提交回复
热议问题