lib/autotest/cucumber_mixin.rb in cucumber-0.4.0 vs lib/autotest/cucumber_mixin.rb in cucumber-0.4.1

- old
+ new

@@ -116,9 +116,15 @@ args = %w{--format} << (features_to_run == :all ? "progress" : "pretty") end # No --color option as some IDEs (Netbeans) don't output them very well (1 failed step) args += %w{--format rerun --out} << dirty_features_filename args << (features_to_run == :all ? "features" : features_to_run) + + # Unless I do this, all the steps turn up undefined during the rerun... + unless features_to_run == :all + args << 'features/step_definitions' << 'features/support' + end + args = args.join(' ') return "#{Cucumber::RUBY_BINARY} #{Cucumber::BINARY} #{args}" end end