Posted 3 months ago. Visible to the public. Repeats.

Geordi: How to rerun failed features

Cucumber will save a file tmp/parallel_cucumber_failures.log will the filenames and line number of the failed scenarios after a full test run.

Normally you can say cucumber -p rerun (rerun is a profile defined by default in config/cucumber.yml) to rerun all failed scenarios. Unfortunately this does not work with geordi yet.

Here is a list of possible workarounds:

Copy
geordi firefox bundle exec cucumber -p rerun cat tmp/parallel_cucucmber_failures.log | xargs geordi cucumber geordi cucumber `cat tmp/parallel_cucumber_failures.log` DISPLAY=:17 bundle exec cucumber @tmp/parallel_cucumber_failures.log DISPLAY=:17 bundle exec cucumber -p rerun

Once an application no longer requires constant development, it needs periodic maintenance for stable and secure operation. makandra offers monthly maintenance contracts that let you focus on your business while we make sure the lights stay on.

Owner of this card:

Avatar
Emanuel De
Last edit:
2 months ago
by Michael Leimstädtner
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Emanuel De to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more