I have a MEAN project. Using Jenkins on an EC2 computer, I create it using the following shell script:
npm install && PORT=8888 npm test
mocha returns 2 (the number of failed tests), but still Jenkins says:
Finished: SUCCESS.
If tests fail, I expect to see
Finished: FAILURE
Do you know why it is not working properly?
source
share