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 2015/03/27 18:27:09 UTC
[Cordova Wiki] Update of "RunningTests" by MuratSutunc
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 MuratSutunc:
https://wiki.apache.org/cordova/RunningTests?action=diff&rev1=23&rev2=24
* [[CordovaCLIManualTests | Cordova CLI Manual Tests]]
+ === Linting rules for Cordova ===
+ It is expected to run `npm test` before each commit, which in return will run jsHint. The default rules for jsHint are "node": true, "bitwise": true, "undef": true, "trailing": true, "quotmark": true, "indent": 4, "unused": "vars" and "latedef": "nofunc". By default node_modules folder is ignored. For platforms, we also ignore contents of project template folder. If you feel that a particular error doesn't apply to a file, please extend the rules in comment form for that file.
+
=== Tips using jasmine-node ===
1. Use `npm test` this calls > package.json "scripts": { "test": "jasmine-node --color spec"}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org