Honestly, running JUnit Tests in Eclipse is pretty trivial, as is running these from the command line. I just tried it and here's the command:
adb shell am instrument -w org.apache.cordova.test/android.test.InstrumentationTestRunner On Thu, Nov 15, 2012 at 7:32 PM, Andrew Grieve <agri...@chromium.org> wrote: > Awesome. The steps to run it in eclipse would be a good addition as well. > I'll sign up to add the iOS unit test instructions. > > > On Thu, Nov 15, 2012 at 8:11 PM, Joe Bowser <bows...@gmail.com> wrote: > >> Web Driver is not necessary to run the tests. I'll get the command line >> version working tomorrow. >> On Nov 15, 2012 5:05 PM, "Andrew Grieve" <agri...@chromium.org> wrote: >> >> > Started to update wiki instructions... but what is the correct last step? >> > >> > === To run these tests from the command line: === >> > 1. Install "Google Web Driver" through the Android SKD Manager >> > 1. Copy the extras/google/webdriver/android_webdriver_library.jar from >> the >> > Android SDK into the framework/libs directory >> > 1. Build Cordova by running "ant" from within the framework directory >> > 1. Run the following command in the framework directory with a device >> > attached or emulator running: >> > adb shell am instrument -w >> > com.phonegap/android.test.InstrumentationTestRunner >> > >> > >> > >> > On Wed, Nov 14, 2012 at 9:24 PM, Andrew Grieve <agri...@chromium.org> >> > wrote: >> > >> > > Tried to follow the command-line instructions but get: >> > > >> > > agrieve@dhcp-172-23-181-44 ~/git/incubator-cordova-android/framework >> > > (asdf) $ adb shell am instrument -w >> > > com.phonegap/android.test.InstrumentationTestRunner >> > > INSTRUMENTATION_STATUS: id=ActivityManagerService >> > > INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: >> > > ComponentInfo{com.phonegap/android.test.InstrumentationTestRunner} >> > > INSTRUMENTATION_STATUS_CODE: -1 >> > > android.util.AndroidException: INSTRUMENTATION_FAILED: >> > > com.phonegap/android.test.InstrumentationTestRunner >> > > >> > > Changing to org.apache.cordova: >> > > agrieve@dhcp-172-23-181-44 ~/git/incubator-cordova-android/framework >> > > (asdf) $ adb shell am instrument -w >> > > org.apache.cordova/android.test.InstrumentationTestRunner >> > > android.util.AndroidException: INSTRUMENTATION_FAILED: >> > > org.apache.cordova/android.test.InstrumentationTestRunner >> > > >> > > On Wed, Nov 14, 2012 at 4:41 PM, Simon MacDonald < >> > > simon.macdon...@gmail.com> wrote: >> > > >> > >> Yup, it passed when I ran it and only it. >> > >> >> > >> Simon Mac Donald >> > >> http://hi.im/simonmacdonald >> > >> >> > >> >> > >> On Wed, Nov 14, 2012 at 4:35 PM, Joe Bowser <bows...@gmail.com> >> wrote: >> > >> >> > >> > How can testPreconditions fail, but testViaLoadUrl pass? Can you run >> > >> > the test by itself? testViaHref is known to fail, and there's an >> issue >> > >> > open about that bug. >> > >> > >> > >> >> > > >> > > >> > >>