Trying to run MobileSpec with the tools release candidate yesterday inspired me to write a script that would do it all with a single command and a local installation of cordova-lib@rc without affecting the global install/link. This also turned out to be a good example of how to use cordova via JS API without CLI.
The result is here: https://github.com/kamrik/cordova-test-rc Usage: git clone https://github.com/kamrik/cordova-test-rc.git cd cordova-test-rc # Change the platform in rctest.js if needed (currently android). # Connect your test device. ./test This will create, build and run mobilespec. Note: there are currently some known failing tests in mobilespec.
