Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test never kill #33

Open
ariden83 opened this issue Nov 22, 2017 · 2 comments
Open

Test never kill #33

ariden83 opened this issue Nov 22, 2017 · 2 comments

Comments

@ariden83
Copy link

Hello,

When I my tests, with :

NODE_ENV='test' NO_PROXY=* jenkins-mocha test.js

The command:

shell.exit(shell.exec(command.join(' ')).code);

execute :

node '/.../node_modules/.bin/nyc' --reporter lcov --reporter text-summary --report-dir /.../artifacts/coverage -- node '/.../node_modules/jenkins-mocha/node_modules/.bin/_mocha' --reporter '/.../node_modules/spec-xunit-file/index.js' --colors 'test.js'

My tests are ok, I've got this message :

X passing (Xs)

artifacts folder and files are weel created

But Test are never kill, Jenkins cannot pass to next step.

Here ar my devDependencies :

"devDependencies": {
   "bunyan": "^1.8.1",
   "chai": "3.5.0",
   "chai-as-promised": "5.3.0",
   "eslint": "^3.0.1",
   "gulp": "^3.9.0",
   "istanbul": "^0.4.3",
   "jenkins-mocha": "6.0.0",
   "mocha": "^2.5.3",
   "mocha-jenkins-reporter": "0.3.10",
   "nock": "9.1.0",
   "node-dev": "3.1.3",
   "portfinder": "1.0.3",
   "uuid": "2.0.2"
 }

If I launch my tests :

NODE_ENV='test' NO_PROXY=* istanbul cover _mocha test.js

Tests are good and script was kill automaticly at the end.

Do you know why ?

Thx

@ariden83
Copy link
Author

Note: If I use "jenkins-mocha": "5.0.0". I don't have this problem.

@stjohnjohnson
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants