netzpirat / guard-cucumber

Guard::Cucumber automatically runs your features (much like autotest)
https://rubygems.org/gems/guard-cucumber
MIT License
40 stars 56 forks source link

duplicate tests being run after a failure #22

Closed oreoshake closed 13 years ago

oreoshake commented 13 years ago

Run Cucumber features features/password_client.feature

-break test

Run Cucumber features features/password_client.feature

-fix test

Run Cucumber features features/password_client.feature features/ password_client.feature:22

All tests get run, and the feature on 22 gets run twice. Should only be once, right?

netzpirat commented 13 years ago

This is in fact a bug. If you have time to look into it, lib/guard/cucumber/inspector.rb is responsible for filtering unwanted paths before the run. It should remove paths that contains a colon when the paths already includes the same file without colon. I may have some time to do it, but that would be rather at the end of the week.