cordova-paramedic
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -25,3 +25,3 @@ #!/usr/bin/env node | ||
if(!argv.platform || !argv.plugin) { | ||
if(!argv.platform) { | ||
console.log(USAGE); | ||
@@ -28,0 +28,0 @@ process.exit(1); |
{ | ||
"name": "cordova-paramedic", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Use medic to test a cordova plugin locally", | ||
@@ -5,0 +5,0 @@ "main": "paramedic.js", |
@@ -281,2 +281,5 @@ #!/usr/bin/env node | ||
storedCWD = storedCWD || process.cwd(); | ||
if(!_plugins) { | ||
_plugins = process.cwd(); | ||
} | ||
if(_platformId && _plugins) { | ||
@@ -283,0 +286,0 @@ |
@@ -16,13 +16,14 @@ cordova-paramedic | ||
``` | ||
cordova-paramedic --platform CORDOVA-PLATFORM --plugin PLUGIN-PATH [--justbuild --timeout MSECS --port PORTNUM] | ||
cordova-paramedic --platform PLATFORM --plugin PATH [--justbuild --timeout MSECS --port PORTNUM --browserify --verbose ]`PLATFORM` : the platform id, currently only supports 'ios' | ||
`PATH` : the relative or absolute path to a plugin folder | ||
expected to have a 'tests' folder. | ||
You may specify multiple --plugin flags and they will all | ||
be installed and tested together. | ||
`MSECS` : (optional) time in millisecs to wait for tests to pass|fail | ||
(defaults to 10 minutes) | ||
`PORTNUM` : (optional) port to use for posting results from emulator back to paramedic server | ||
--justbuild : (optional) just builds the project, without running the tests | ||
--browserify : (optional) plugins are browserified into cordova.js | ||
--verbose : (optional) verbose mode. Display more information output | ||
`CORDOVA-PLATFORM` : the platform id, currently supports `ios|android|windows` and barely `browser` | ||
`PLUGIN-PATH` : the relative or absolute path to a plugin folder | ||
expected to have a 'tests' folder. | ||
You may specify multiple --plugin flags and they will all | ||
be installed and tested together. | ||
`MSECS` : (optional) time in millisecs to wait for tests to pass|fail | ||
(defaults to 10 minutes) | ||
`PORTNUM` : (optional) port to use for posting results from emulator back to paramedic server | ||
--justbuild : (optional) just builds the project, without running the tests | ||
``` | ||
@@ -34,5 +35,5 @@ | ||
var paramedic = require('cordova-paramedic'); | ||
paramedic.run('ios','../cordova-plugin-device',bJustBuild,nPort,msTimeout); | ||
paramedic.run('ios', '../cordova-plugin-device', onCompleteCallback,justBuild,portNum,msTimeout, useBrowserify, beSilent, beVerbose); | ||
``` | ||
36379
20
367
38