When I right click a project in NetBeans and choose Test, certain unit tests aren't running. If I right click the .java file that contains the unit tests and choose Test File, the unit tests do run. Also I have this project in Hudson CI and those same unit tests don't get run.
A:
Liron Yahdav
2009-11-18 03:29:49
Seems to me its because your tests should be specific to each class. The JUnit approach to testing is that each application class has a corresponding class to test it. Which is the behaviour you're seeing.
MadMurf
2009-11-18 03:51:04
After further research, it actually doesn't matter that each class have a corresponding test class. See my edit in the answer for an explanation.
Liron Yahdav
2009-11-18 18:52:22