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

Adding configuration to fail grunt task if e2e tests fail #993

Merged
merged 1 commit into from
Oct 17, 2015

Conversation

jloveland
Copy link
Contributor

fixing #961, failing grunt task will fail the travis build which is the desired behavior

@jloveland jloveland changed the title adding configuration to fail grunt task if e2e tests fail Adding configuration to fail grunt task if e2e tests fail Oct 16, 2015
@jloveland
Copy link
Contributor Author

@codydaig, I purposely failed the build so you can see this config works.
see here: https://travis-ci.org/meanjs/mean/builds/85657476

@codydaig
Copy link
Member

LGTM
@jloveland Thanks! :-D

@mleanos
Copy link
Member

mleanos commented Oct 16, 2015

LGTM too! Thanks!

I am wondering, and just throwing this out there, if we want to add the keepAlive setting into the env config? How useful would this be for development purposes?

@@ -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,
Copy link
Member

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.

@ilanbiala ilanbiala added this to the 0.4.2 milestone Oct 16, 2015
@codydaig
Copy link
Member

@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?

@mleanos
Copy link
Member

mleanos commented Oct 16, 2015

@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 :)

@jloveland
Copy link
Contributor Author

For the keepAlive config, I was thinking it would be handy to have it there, then add another PR for adding grunt watch so, we can develop e2e tests have it continually run grunt tests after saving the test files..
https://www.credera.com/blog/technology-insights/java/testing-angularjs-part-5-protractor-grunt/

@codydaig
Copy link
Member

@ilanbiala Are you okay with keepAlive being left in there, or do you want it removed before I merge?

@ilanbiala
Copy link
Member

Remove it please.

@jloveland
Copy link
Contributor Author

@ilanbiala and @codydaig will do.

@codydaig
Copy link
Member

Thanks @jloveland! :-)

codydaig added a commit that referenced this pull request Oct 17, 2015
Adding configuration to fail grunt task if e2e tests fail
@codydaig codydaig merged commit 7509074 into meanjs:master Oct 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants