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 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 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)