-
Notifications
You must be signed in to change notification settings - Fork 2k
Adding configuration to fail grunt task if e2e tests fail #993
Conversation
@codydaig, I purposely failed the build so you can see this config works. |
a8e3601
to
f319545
Compare
LGTM |
LGTM too! Thanks! I am wondering, and just throwing this out there, if we want to add the |
@@ -201,7 +201,8 @@ module.exports = function (grunt) { | |||
protractor: { | |||
options: { | |||
configFile: 'protractor.conf.js', | |||
keepAlive: true, | |||
// Stops Grunt process if a test fails | |||
keepAlive: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default is false, right? I'd rather just remove it because it's the behavior we expect and Grunt isn't as clear as it could be anyway.
@mleanos I don't see a use case where that would be beneficial of the top of my head. Since the e2e tests run last, you'd still find out if any of your server or client tests failed first before hitting the e2e tests. When would you want to a build to pass even though the e2e tests weren't? |
@codydaig I guess my thought was that in a certain environment (development/staging), you may want the Grunt task to continue running even when a E2E test fails. The idea was mostly just an afterthought :) |
For the |
@ilanbiala Are you okay with |
Remove it please. |
@ilanbiala and @codydaig will do. |
f319545
to
70d7e17
Compare
Thanks @jloveland! :-) |
Adding configuration to fail grunt task if e2e tests fail
fixing #961, failing grunt task will fail the travis build which is the desired behavior