I downloaded the sample project and am able to run the tests both from
intellij and from ant. So I tried adding a test-module to an existing
Android application that I'm working on, a simple test to verify the
option menus for an activity. But when I run this test from intellij,
I get the following error:
!!! JUnit version 3.8 or later expected:
java.lang.RuntimeException: Stub!
at junit.runner.BaseTestRunner.<init>(BaseTestRunner.java:5)
at junit.textui.TestRunner.<init>(TestRunner.java:54)
at junit.textui.TestRunner.<init>(TestRunner.java:48)
at junit.textui.TestRunner.<init>(TestRunner.java:41)
at
com.intellij.rt.execution.junit.JUnitStarter.junitVersionChecks(JUnitStarter.java:
183)
at
com.intellij.rt.execution.junit.JUnitStarter.canWorkWithJUnitVersion(JUnitStarter.java:
167)
at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:
54)
I am happy to provide more details, except I reckon there is something
I am doing that is obviously wrong and am hoping someone can point it
out. I added a test-run parameter as well (-junit4) to see if that
would help, but it didn't. I even checked out your video on
http://wn.com/unit_testing for additional clues, but no luck.
Thanks in advance,
-Avinash Chugh