Read more

Hack of the day: One-liner to run all Cucumber features matching a given string

Arne Hartherz
July 07, 2016Software engineer at makandra GmbH

The following will search for all .feature files containing a search term and run them using geordi Show archive.org snapshot .

find features/ -name '*.feature' | xargs grep -li 'YOUR SEARCH TERM' | sort -u | 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 do not use Geordi, xargs cucumber or similar might work for you.

For details about each command, see explainshell.com Show archive.org snapshot .


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

Posted by Arne Hartherz to makandra dev (2016-07-07 16:34)