rrajkowski / mps-unit-tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mps-unit-tests

MochaJS + PhantomJS + LCOV (node/grunt/blanket)


  1. Install Node.js (binary) [http://nodejs.org]
  2. Install Phantom.js (binary) [http://phantomjs.org]
  3. Run npm install mocha-phantomjs --save-dev github[https://www.npmjs.org/package/mocha-phantomjs]
  4. Run npm install mocha --save-dev github[https://github.com/mochajs/mocha]
  5. Run npm install chai --save-dev [http://chaijs.com/guide/installation/]
  6. Install sonar reoprter: Run npm install xunit-file --save-dev github [https://github.com/peerigon/xunit-file]
  7. All JS tests are: /spec/*.js
  8. All Sonar Coverage Xml reports are: /reports/*.xml
  9. Run tests from cli: mocha-phantomjs -R spec TestRunner.html
  10. Export tests to reports folder: mocha-phantomjs -R xunit TestRunner.html > reports/mocha-test.xml
  11. Export MPS example TEST to XML: mocha-phantomjs -R xunit appendTestRunner.html > reports/append-test.xml

About


Languages

Language:JavaScript 77.6%Language:HTML 21.9%Language:CSS 0.5%