Skip to content

Commit

Permalink
Autotest: Use progress by default when running all features.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peeja committed Nov 7, 2008
1 parent eb39788 commit c00516b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions cucumber.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
default: --format progress features
autotest: --format pretty features
autotest-all: --format progress features
7 changes: 5 additions & 2 deletions lib/autotest/cucumber_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ def make_cucumber_cmd(scenarios_to_run, dirty_scenarios_filename)
profile ||= "autotest" if profiles.include?("autotest")
profile ||= nil

args = profile ? ["--profile", profile] : %w{features --format pretty}
args << "--color"
if profile
args = ["--profile", profile]
else
args = %w{features --format} << (scenarios_to_run == :all ? "progress" : "pretty")
end
args += %w{--format autotest --out} << dirty_scenarios_filename
args = args.join(' ')

Expand Down

0 comments on commit c00516b

Please sign in to comment.