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条回答
Lonely孤独者°
2楼-- · 2020-05-29 16:46

enter image description here

Make sure 'app' is selected to run...

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2020-05-29 16:47

I had this same issue and for me it was because TestNG plugin was not installed in Intellij. I did not choose it when installed Intellij and forgot about that.

查看更多
狗以群分
4楼-- · 2020-05-29 16:50

Make sure your class is declared as public and not 'default'

public class MyClassTest

as opposed to:

class MyClassTest

When creating a new test class via IntelliJ shortcut the generated class was not declared as public and that caused the error.

查看更多
登录 后发表回答