I’m using Testacular which is a Node.js test runner for Angular/Jasmine. I can run it fine from the command line, but every time I try to run it from Jenkins build steps, it bombs out with all sorts of errors regarding environment variables. I tried the Nodejs plugin for Jenkins, but that’s just to run node code snippets. Anyone know of a way to have node apps (eg. Testacular) running test under Jenkins?
I’m using Testacular which is a Node.js test runner for Angular/Jasmine. I can run
Share
You will need to:
package.jsonfile.npm install(do this as a build step)./node_modules/.bin/testacular start --single-runAssuming you have configured testacular to use PhantomJs
browsers = ['PhantomJS'];, you just need to have thephantomjsbinary in your path or tell testacular where it is located with an environment variable set in your shell: