Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

0 test class found in package ‘<default package>’

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?

like image 336
webdigga Avatar asked Sep 10 '14 16:09

webdigga


3 Answers

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.

like image 51
Marcelo Melo Avatar answered Nov 15 '22 09:11

Marcelo Melo


This can be fixed by invalidating the cache.

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

Source

like image 27
Raj Avatar answered Nov 15 '22 07:11

Raj


enter image description here

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

like image 4
Vinod Joshi Avatar answered Nov 15 '22 07:11

Vinod Joshi