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?
This can be fixed by invalidating the cache.
On the main menu, choose File -> Invalidate Caches/Restart.
Source
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.
Make sure 'app' is selected to run...
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
On your topbar or Alt + Shift + F10 and Run your project with your default Configuration not "values in app"
Just create another folder, which will mark the directory as Sources Root and move your executable file into this folder.
What worked for me was deleting the .idea folder and importing the project again.
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.
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.