Skip to content

Commit

Permalink
Release 0.1.99.11. Added --no-multiline and fixed -n bug. [cucumber#175
Browse files Browse the repository at this point in the history
… state:resolved]
  • Loading branch information
aslakhellesoy committed Jan 27, 2009
1 parent b491642 commit 29ea173
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
2 changes: 2 additions & 0 deletions History.txt
Expand Up @@ -57,6 +57,7 @@ Scenario Outlines, the rich command line, the nice output format and everything
pure Ruby users have been enjoying for a while.

== Bugfixes
* -n option does not suppress the line info for a Scenario Outline (#175 Aslak Hellesøy)
* Errors with rspec-rails matchers in cucumber 0.1.99 (#173 David Chelimsky)
* Can't use an empty string as a table value in a scenario outline (#172 Aslak Hellesøy)
* Really skip skipped steps (#90 Aslak Hellesøy)
Expand All @@ -68,6 +69,7 @@ pure Ruby users have been enjoying for a while.
* Pending steps in > steps called from steps (#65 Aslak Hellesøy)

=== New features
* New --no-multiline option to reduce noise. Useful if lots of features are failing.
* Added ability to pass URIs to cucumber in addition to files and directories. Useful for troubleshooting! (Aslak Hellesøy)
* Groups of tabular scenarios (#57 Aslak Hellesøy)
* Tagging scenarios and features. Pick the ones to run with --tags (#54 Aslak Hellesøy)
Expand Down
8 changes: 4 additions & 4 deletions cucumber.gemspec

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions lib/cucumber/cli/main.rb
Expand Up @@ -56,11 +56,11 @@ def parse_options!(args)
args.extend(OptionParser::Arguable)

args.options do |opts|
opts.banner = ["Usage: cucumber [options] [[FILE[:LINE[:LINE]*]] | [FILES|DIRS]]", "",
opts.banner = ["Usage: cucumber [options] [ [FILE|DIR|URL][:LINE[:LINE]*] ]+", "",
"Examples:",
"cucumber examples/i18n/en/features",
"cucumber --language it examples/i18n/it/features/somma.feature:6:98:113",
"cucumber --no-snippets http://tinyurl.com/cuke-mastermind", "", "",
"cucumber -n -i http://rubyurl.com/eeCl", "", "",
].join("\n")
opts.on("-r LIBRARY|DIR", "--require LIBRARY|DIR",
"Require files before executing the features. If this",
Expand Down Expand Up @@ -138,16 +138,16 @@ def parse_options!(args)
@options[:dry_run] = true
@quiet = true
end
opts.on("-m", "--[no-]multiline",
"Don't print multiline strings and tables under steps.") do |v|
@options[:source] = v
opts.on("-m", "--no-multiline",
"Don't print multiline strings and tables under steps.") do
@options[:no_multiline] = true
end
opts.on("-n", "--[no-]source",
"Don't show the file and line of the step definition with the steps.") do |v|
@options[:source] = v
opts.on("-n", "--no-source",
"Don't print the file and line of the step definition with the steps.") do
@options[:source] = false
end
opts.on("-i", "--[no-]snippets", "Don't show the snippets for pending steps.") do |v|
@options[:snippets] = v
opts.on("-i", "--no-snippets", "Don't print snippets for pending steps.") do
@options[:snippets] = false
end
opts.on("-q", "--quiet", "Alias for --no-snippets --no-source.") do
@quiet = true
Expand Down
1 change: 1 addition & 0 deletions lib/cucumber/formatter/pretty.rb
Expand Up @@ -121,6 +121,7 @@ def visit_step_name(keyword, step_name, status, step_definition, source_indent)
end

def visit_multiline_arg(multiline_arg, status)
return if @options[:no_multiline]
multiline_arg.accept(self, status)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/version.rb
Expand Up @@ -3,7 +3,7 @@ class VERSION #:nodoc:
MAJOR = 0
MINOR = 1
TINY = 99
PATCH = 10 # Set to nil for official release
PATCH = 11 # Set to nil for official release

STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
end
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber/ast/scenario_outline_spec.rb
Expand Up @@ -56,7 +56,7 @@ module Ast

it "should pretty print" do
require 'cucumber/formatter/pretty'
visitor = Formatter::Pretty.new(@step_mother, STDOUT, {:source => true})
visitor = Formatter::Pretty.new(@step_mother, STDOUT, {:comment => true})
visitor.visit_feature_element(@scenario_outline)
end
end
Expand Down

0 comments on commit 29ea173

Please sign in to comment.