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 money motivation

Opscomplete powered by makandra brand

Save money by migrating from AWS to our fully managed hosting in Germany.

  • Trusted by over 100 customers
  • Ready to use with Ruby, Node.js, PHP
  • Proactive management by operations experts
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)