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 web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
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)