You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running cucumber with the stepdefs formatter, looking for unused steps, using something like the following:
cucumber -d -f stepdefs --color | grep "NOT MATCHED BY ANY STEPS" -B1
you'll see lots of output corresponding to unused steps bundled with frank, such as:
/^I wait to see a navigation bar titled "([^\"]*)"$/
# Frank-743854779301/gem/lib/frank-cucumber/core_frank_steps.rb:26
NOT MATCHED BY ANY STEPS
--
/^a pop\-over menu is displayed with the following:$/
# Frank-743854779301/gem/lib/frank-cucumber/core_frank_steps.rb:237
NOT MATCHED BY ANY STEPS
Is there any way to exclude these in this case, apart from parsing the output? I tried the --exclude cucumber option, which didn't seem to have any effect.
The text was updated successfully, but these errors were encountered:
Yeah, I ended up filtering the output with grep to only those steps found in my project's step definitions directory, in addition to being not matched by any steps. But I never would have thought of writing your own formatter to solve this, that's brilliant! Not sure if that would be something appropriate to bundle with Frank, though.
When running cucumber with the stepdefs formatter, looking for unused steps, using something like the following:
cucumber -d -f stepdefs --color | grep "NOT MATCHED BY ANY STEPS" -B1
you'll see lots of output corresponding to unused steps bundled with frank, such as:
Is there any way to exclude these in this case, apart from parsing the output? I tried the --exclude cucumber option, which didn't seem to have any effect.
The text was updated successfully, but these errors were encountered: