Getting Jenkins ready for Node.js and AngularJS testing

Hold on Cowboy

This blog post is pretty old. Be careful with the information you find in here. It's likely dead, dying, or wildly inaccurate.

Setting up Jenkins for Node.js + Mocha testing and such

Install this stuff

  • Node.js via Nave
    • git clone* ./bin/ usemain v.0.8.9
  • Mocha
    • npm install -g mocha
  • ChaiJS
    • npm install -g chai
  • xunit-file (Mocha custom report for Jenkins)
    • npm install -g xunit-file
  • Jshint
    • npm install -g jshint
  • Nock
    • npm install -g nock
  • Supertest
    • npm install -g supertest
  • Testacular
    • npm install -g testacular
  • PhantomJS
    • npm install -g phantomjs

Here is a handy script that will install v0.8.9 and all the others