-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Grunt return 0 even if a protractorjs test fail #1114
Comments
Which plugin are you using? If it is this one https://github.com/teerapap/grunt-protractor-runner/blob/master/tasks/protractor_runner.js#L112 then it probably needs to adjust how it deals with errors. |
It seems that it is a configuration issue, see comments in teerapap/grunt-protractor-runner#63 |
I still have a need to run other grunt tasks after a failed test - e.g. to shutdown my local server and disconnect from Sauce Connect. Does Grunt have an API for deferring failed exit status codes? teerapap/grunt-protractor-runner#63 |
@adjohnson916 : I use keepAlive in protractor conf and in the case of test failures grunt exits with code 0, however on the CI server (Jenkins in my case) I use text finder plugin to search in console output for specific pattern like # spec, 0 failures. If this is not seen mark build fail. You can also write a shell script as a post build action to get console output via curl and parse for specific string and mark the build pass/fail accordingly |
@chitwant82 any other simple solution ? rather than checking for patterns ? |
You can try to use |
Grunt returns 0 even if a protractorjs test fail and consequently jenkins return a false positive.
Instead when a karmajs test fail grunt returns with a fail status code as I expect.
Is this a grunt or a protractor issue ?
The text was updated successfully, but these errors were encountered: