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 book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
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)