Read more

Hack of the day: One-liner to run all changed Cucumber features

Arne Hartherz
September 19, 2016Software engineer at makandra GmbH

Similar to our snippet that runs all Cucumber features matching a given string, the following will run all modified or new Cucumber features by looking at your git status:

git status --short | grep -v '^ D ' | grep '.feature' | sed 's/.. //' | tr '\n' ' ' | xargs geordi cucumber
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

If you want to know what each of the above commands does, see explainshell Show archive.org snapshot .

Note that we use geordi cucumber Show archive.org snapshot to run our tests. If you don't, xargs cucumber or similar might work for you.


Part of Geordi 1.6.0 Show archive.org snapshot : geordi cucumber --modified.

Posted by Arne Hartherz to makandra dev (2016-09-19 10:45)