Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Grunt return 0 even if a protractorjs test fail #63

Closed
jarl-dk opened this issue Jun 4, 2014 · 3 comments
Closed

Grunt return 0 even if a protractorjs test fail #63

jarl-dk opened this issue Jun 4, 2014 · 3 comments

Comments

@jarl-dk
Copy link

jarl-dk commented Jun 4, 2014

According to gruntjs/grunt#1114
It is a problem in grunt-protractor-runner

I see

Running "protractor:run" (protractor) task
Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver[launcher] chrome passed
>> 
>> Test failed but keep the grunt process alive.

Done, without errors.

Can you confirm it is a problem in this project?

@Brootux
Copy link

Brootux commented Jun 5, 2014

I think the problem is this

>> Test failed but keep the grunt process alive.

Do you setup keepAlive: true anywhere in your grunt and/or protractor configuration?

@jarl-dk
Copy link
Author

jarl-dk commented Jun 5, 2014

Yes, my Gruntfile.js contains a keepAlive: true. If I commentthat out it seems to behave as expected. I also checked that the return code was 1 if I run protractor without grunt, like
node node_modules/protractor/bin/protractor protractor.conf.js --verbose, in this case it also returned 1. So I guess everything is as it should be in protractor... Sorry for any inconvenience.

@AndersDJohnson
Copy link

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? gruntjs/grunt#1114

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

No branches or pull requests

4 participants