question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--fail-fast CLI option

See original GitHub issue

Nice to have a --fail-fast option that process.exit(1) after first error found.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

5reactions
willem-groeneveldcommented, Sep 20, 2016

This works for me, when using protractor with cucumber, add the fail-fast option to cucumberOpts in the protractor conf file, the quotes around the ‘fail-fast’ are needed.

cucumberOpts: { require: [ ‘…/features/step_definitions/*.js’, ], format: ‘pretty’, // or summary, progress ‘fail-fast’: true },

0reactions
LaiaPRcommented, Mar 10, 2016

Hi!

I am using Protractor with Cucumber (and I also run my tests on Travis with Gulp). I have not found a way to fail when the first failed test occurs… Would you include that in Protractor? Is there a workaround I can use?

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

`--fail-fast` option - Command line - RSpec Core - Relish
Use the --fail-fast option to tell RSpec to stop running the test suite on the first failed test. You may add a parameter...
Read more >
CLI: `--fail-fast` option — lambdaisland/kaocha 1.70.1086 - cljdoc
CLI : --fail-fast option. Kaocha by default runs all tests it can find, providing a final summary on failures and errors when all...
Read more >
CLI (command-line interface) - Cucumber Rust Book
cucumber crate provides several options that can be passed to the command-line. Use --help flag to print out all the available options:.
Read more >
Fail Fast Testing - GitLab Docs
Fail fast testing gives you a faster feedback loop from the pipeline. ... To customize the job, specific options may be set to...
Read more >
Fail-Fast: Stop running tests on the first failure
The cancel strategy only stops the jobs and blocks in your pipeline that haven't yet started. This option is ideal if you don't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found