Skip to content
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

add failOnError and integration-test support #572

Merged
merged 3 commits into from Mar 1, 2017

Conversation

jcarsique
Copy link
Contributor

This reuses and fixes PR #553 , solving issue #552 ; see also #534 closed as duplicate.

Current behavior: an execution failure stops the Maven build. This is an issue for instance when the plugin is used to execute tests. Moreover, after an integration-test phase, it is often required to execute the post-integration-test phase for environment cleanup and tear down.

Expected behavior:

  • add a failOnError property
  • if unset, then defaults to true except if if the current execution is a testing phase
  • else, if failOnError==true, keep the current behavior (BUILD FAILURE)
  • else, if failOnError==false, don't fail the Maven build (BUILD ERROR)

That is compliant with the common behavior encountered on the Maven plugins.

Tested on frontend-maven-plugin 1.4-SNAPSHOT

Stefano Vetrini and others added 3 commits February 20, 2017 16:51
… maven.test.failure.ignore property from KarmaRunMojo to AbstractFrontendMojo to manage integration-test phases

updated README.md and CHANGELOG.md
…est.failure.ignore properties

fix integration-test
eval failOnError depending on the property set and isTestingPhase()
@mriehema
Copy link
Contributor

mriehema commented Mar 1, 2017

LGTM, what do you think @eirslett?

@eirslett
Copy link
Owner

eirslett commented Mar 1, 2017

Ok thanks, I'll merge this version!

@eirslett eirslett merged commit 7c7f71e into eirslett:master Mar 1, 2017
eirslett added a commit that referenced this pull request Jul 18, 2017
@eirslett
Copy link
Owner

This PR was reverted due to #613.

eirslett added a commit that referenced this pull request Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants