Posted about 1 month 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

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Emanuel De
Last edit:
16 days 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