You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by Apache Wiki <wi...@apache.org> on 2013/10/22 20:50:35 UTC

[Cordova Wiki] Update of "RunningTests" by Carlos

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cordova Wiki" for change notification.

The "RunningTests" page has been changed by Carlos:
https://wiki.apache.org/cordova/RunningTests?action=diff&rev1=17&rev2=18

  
  * [[iOSManualTests | iOS Manual Tests]]
  
+ == Testing Cordova and Plugman Node CLI ==
+ 
+ === Tips using jasmine-node ===
+ 
+ 1. Use "npm test" this calls > package.json "scripts": { "test": "jasmine-node --color spec"}
+ Remember when using npm jasmine-node binary is added to the $PATH temporarily
+ 
+ 2. If something breaks "red F", then run verbose. "./node_modules/jasmine-node/bin/jasmine-node  spec --verbose"
+ Very useful to pin point spec.js that has the failing test, then do step 3
+ 
+ 3. To run a single spec.js use "./node_modules/jasmine-node/bin/jasmine-node spec/run.spec.js --verbose"
+ Much faster iteration, code & test. But remember to run full suite before pushing code
+ 
+ 4. Don't run global "jasmine-node", it might be a different version than the one in cordoval-cli/plugman package.json
+