r-cochran / cuke_sniffer

A ruby library used to root out smells in your cukes.
MIT License
44 stars 28 forks source link

False positive Dead steps #112

Open anandchavan opened 6 years ago

anandchavan commented 6 years ago

Issue - Cuke_Sniffer smells the step as dead step even if its called from within another step.

Example:

random_steps.rb

Given /^This is my first step$/ do
// some code
end
Given /^This is my another step$/ do
// some code

step 'This is my first step'

// some code
end

If you run cuke_sniffer for this, the cuke_sniffer will smell first step as dead_step