0 test class found in package ‘

2020-05-29 16:11发布

I have recently installed IntelliJ IDEA 13.1.4 and the jRebel plugin. I have licensed it ok and created and added configurations in catalina.bat file.

When running jRebel from within IntelliJ, it seems to be monitoring the correct directories but I get the following message:

0 test class found in package ‘’

This then tells me that it has failed to start.

Does anybody know what I might need to change to get this to work?

9条回答
在下西门庆
2楼-- · 2020-05-29 16:30

What worked for me was deleting the .idea folder and importing the project again.

查看更多
迷人小祖宗
3楼-- · 2020-05-29 16:34

When I used the IntelliJ 'Create Test' feature, my test classes were automatically created as private.

When I manually changed my test classes to public, my test classes were found.

Source

查看更多
Lonely孤独者°
4楼-- · 2020-05-29 16:36

Just create another folder, which will mark the directory as Sources Root and move your executable file into this folder.

查看更多
▲ chillily
5楼-- · 2020-05-29 16:39

This can be fixed by invalidating the cache.

On the main menu, choose File -> Invalidate Caches/Restart.

Source

查看更多
贪生不怕死
6楼-- · 2020-05-29 16:39

enter image description here

On your topbar or Alt + Shift + F10 and Run your project with your default Configuration not "values in app"

查看更多
对你真心纯属浪费
7楼-- · 2020-05-29 16:42

For me this was the problem: My test folder was ./test/src/com/.... I had marked test as test folder, but test/src was the right one.

The "false" setting worked for me with Jintellij 2017.1.3, but not in 2018.02.

查看更多
登录 后发表回答