JUnit IJ wrapper not able to run a single test in a package

I can configure JUnit to run a test in a package. The tests will run but when I want it to just run 1, it gives me and error. I manually copy over the settings from the target I ran and I know for certain this class extends TestCase and I am including a picture to prove it. any ideas? I am using 6.0.5#6180 on RHEL 3.

unit.framework.AssertionFailedError: No tests found in com.amazon.shipping.test.TestRemoteRegression
at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:65)
at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

1 comment

junit needs at least 1 testmethod in the class.
ie a method that has a name that starts with 'test' and is public void.
N.B. this applies for junit 3.x (with junit 4 you've got the option to not extend from TestCase and use annotations)

HTH, Ruben


Please sign in to leave a comment.