2

I have a nodejs app. How do I set up jenkins so that it runs my tests in parallel? I'm using grunt test (grunt) to run my tests. I'm using mocha, chai, and sinon

Chris Hansen
  • 7,813
  • 15
  • 81
  • 165

1 Answers1

0

I don't know you have got the answer already or not, if not please check it.

Jenkins CI integrate with NodeJS and Github problems in configuring build

I have recently posted there my setup of jenkins with nodejs and parallel tests running with Jasmine-node and Frisby

you need to add grunt task to add test spec folder and files into build. and configure testing commands into SSH Publisher in project configuration page Exec Commands.

    cd projectname 
    rm -rf public server package.json
    tar -xvf projectname.tgz 
    ls
    npm install --production
    export NODE_ENV=production 
    forever restartall
    jasmine-node spec/api/frisbyapi_spec.js 
    jasmine-node spec/maintest.js
    rm -rf projectname.tgz 
Community
  • 1
  • 1
Shad
  • 969
  • 1
  • 10
  • 18