0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Helps you locate the implementation for a given step
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0

Runtime

~> 1.2
 Project Readme

cucumber-peel

The indirection between gherkin in feature files and the location of step implementations (located in any arbitrarily named file and obfuscated by regex patterns) can be a moderate productivity drain when searching for the implementation of a given step.

This isn't much of a problem when your cucumber feature has a fast runtime, because Cucumber's default reporter prints the step implementation location in the margin, but running the entire feature to find out where a step lives can be quite cumbersome when your feature is very slow.

usage

Start by adding cucumber-peel to your Gemfile (probably in a development group)

group :development do
  #...
  gem 'cucumber-peel'
end

Then once you've run bundle install, you can invoke the cucumber-peel binary:

$ bundle exec cucumber-peel

This will start a very simple REPL-like interface into which you can paste gherkin steps as you find them in your feature files.

Using the default profile...

Cucumber runtime loaded. Enter steps to search for.
> I am on the history reports page
/Users/justin/code/my_app/features/step_definitions/web_steps.rb:24
>

And then you can just hit Ctrl-C or type "exit" to quit.