GitHub user Jeff-Symphony opened a pull request:
https://github.com/apache/maven-surefire/pull/37
a way to force the junit runner to stop when there is a test failure
I'm not sure if this is an acceptable solution, and I *didn't* add any test
cases for this, but it's at least some progress on a **3 year old** request.
http://jira.codehaus.org/browse/SUREFIRE-580
- uses pleaseStop() from the RunNotifier, along with a config property in
the pom
- doesn't work with Scalatest <=2.1.5 (it works, it's just not very
graceful - there is an open issue with Scalatest that is being resolved)
- I'm not sure if TestNG has an equivalent, but it would probably be a
similar modification to the Provider
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Jeff-Symphony/maven-surefire
surefire-580-fast-fail
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven-surefire/pull/37.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #37
----
commit f624d730b05a361088c12b449084e177edf2ddc9
Author: Jeff-Symphony <[email protected]>
Date: 2014-05-02T21:14:21Z
a way to force the junit runner to stop when there is a test failure
- uses pleaseStop() from the RunNotifier along with a config property in
the pom
- doesn't work with Scalatest <=2.1.5
- I'm not sure if TestNG has an equivalent
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]