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 https://github.com/isaacs/nave.git
*./bin/nave.sh 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 https://gist.github.com/4535632
Did this help you out? It took me a few days to piece together all this information together, I hope this saves you some time (who knows, maybe the future me will be thankful I wrote this down). Let me know your thoughts. [email protected]