1.0.0 • Published 8 years ago
testarmada-magellan-early-bail-strategy v1.0.0
Magellan-Early-Bail-Strategy
Strategy for Magellan to stop a test suite if test failure ratio exceeds a threshold within a given period.
Important Notes About Versions
Important: testarmada-magellan-early-bail-strategy
is only supported by Magellan version 10.0.0
or higher.
What does this executor do
- It works as a Magellan strategy to help Magellan make decision when to do what
- It tells Magellan when to stop a test suite
- It tells Magellan when to stop a test
How To Use
Please follow the following steps:
npm install testarmada-magellan-early-bail-strategy --save
Add following line to your
magellan.json
(if there isn't amagellan.json
please create one under your folder root):"strategy_bail": "testarmada-magellan-early-bail-strategy"
Or, instead of adding above line in
magellan.json
, add following argument in your command line--strategy_bail testarmada-magellan-early-bail-strategy
./node_modules/.bin/magellan --help
to see if you can see the following content printed outStrategy-specific (testarmada-magellan-early-bail-strategy) --early_bail_threshold=0.1 Ratio of tests that need to fail before we abandon the build --early_bail_min_attempts=10 Minimum number of tests that need to run before we apply the bail strategy
Congratulations, you're all set.
Example
To enable this strategy with default threshold
$ ./node_modules/.bin/magellan --strategy_bail testarmada-magellan-early-bail-strategy --test xxx
To enable this strategy with customized threshold
$ ./node_modules/.bin/magellan --strategy_bail testarmada-magellan-early-bail-strategy --early_bail_threshold 0.5 --early_bail_min_attempts 5 --test xxx
1.0.0
8 years ago