Freestyle Job -> выполнить скрипт оболочки ->
npm install
node run.js &
node_pid=$!
sleep 15 // so tests won't fail because server not yet started
./node_modules/.bin/mocha --reporter tap > results/s-api.tap
result=$?
kill $node_pid
sleep 1 // so jenkins won't "scream" about leaked process
return result // we need return code of tests