cucumber 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. data/History.txt +19 -0
  2. data/README.rdoc +1 -1
  3. data/Rakefile +2 -5
  4. data/VERSION.yml +1 -1
  5. data/cucumber.gemspec +12 -4
  6. data/examples/i18n/de/features/addition.feature +1 -1
  7. data/examples/i18n/de/features/step_definitons/calculator_steps.rb +3 -3
  8. data/examples/self_test/features/step_definitions/sample_steps.rb +22 -22
  9. data/examples/tickets/features/half_manual.feature +11 -0
  10. data/examples/tickets/features/step_definitons/half_manual_steps.rb +11 -0
  11. data/features/announce.feature +97 -97
  12. data/features/background.feature +1 -4
  13. data/features/bug_475.feature +1 -2
  14. data/features/call_many_steps.feature +4 -6
  15. data/features/exception_in_after_block.feature +2 -3
  16. data/features/exception_in_after_step_block.feature +2 -3
  17. data/features/exception_in_before_block.feature +1 -2
  18. data/features/html_formatter/a.html +50 -40
  19. data/features/negative_tagged_hooks.feature +2 -3
  20. data/features/profiles.feature +2 -2
  21. data/features/report_called_undefined_steps.feature +2 -2
  22. data/features/rerun_formatter.feature +45 -0
  23. data/features/table_diffing.feature +1 -1
  24. data/features/table_mapping.feature +2 -3
  25. data/features/wire_protocol_table_diffing.feature +25 -0
  26. data/features/wire_protocol_tags.feature +47 -0
  27. data/lib/cucumber/ast/table.rb +2 -2
  28. data/lib/cucumber/cli/configuration.rb +1 -1
  29. data/lib/cucumber/cli/drb_client.rb +27 -16
  30. data/lib/cucumber/cli/profile_loader.rb +3 -2
  31. data/lib/cucumber/core_ext/proc.rb +1 -2
  32. data/lib/cucumber/formatter/console.rb +6 -4
  33. data/lib/cucumber/formatter/cucumber.css +10 -0
  34. data/lib/cucumber/formatter/cucumber.sass +10 -0
  35. data/lib/cucumber/formatter/html.rb +197 -186
  36. data/lib/cucumber/formatter/pdf.rb +24 -7
  37. data/lib/cucumber/formatter/rerun.rb +6 -3
  38. data/lib/cucumber/formatter/unicode.rb +1 -1
  39. data/lib/cucumber/languages.yml +7 -7
  40. data/lib/cucumber/parser/natural_language.rb +7 -0
  41. data/lib/cucumber/parser/treetop_ext.rb +1 -0
  42. data/lib/cucumber/rb_support/rb_world.rb +5 -0
  43. data/lib/cucumber/step_match.rb +4 -2
  44. data/lib/cucumber/step_mother.rb +53 -4
  45. data/lib/cucumber/wire_support/configuration.rb +11 -1
  46. data/lib/cucumber/wire_support/wire_language.rb +6 -3
  47. data/lib/cucumber/wire_support/wire_protocol.rb +2 -2
  48. data/lib/cucumber/wire_support/wire_protocol/requests.rb +26 -4
  49. data/spec/cucumber/ast/background_spec.rb +3 -3
  50. data/spec/cucumber/ast/feature_element_spec.rb +2 -2
  51. data/spec/cucumber/ast/feature_spec.rb +5 -5
  52. data/spec/cucumber/ast/outline_table_spec.rb +1 -1
  53. data/spec/cucumber/ast/py_string_spec.rb +1 -1
  54. data/spec/cucumber/ast/scenario_outline_spec.rb +3 -3
  55. data/spec/cucumber/ast/scenario_spec.rb +3 -3
  56. data/spec/cucumber/ast/step_collection_spec.rb +3 -3
  57. data/spec/cucumber/ast/step_spec.rb +1 -1
  58. data/spec/cucumber/ast/table_spec.rb +23 -3
  59. data/spec/cucumber/ast/tree_walker_spec.rb +1 -1
  60. data/spec/cucumber/broadcaster_spec.rb +1 -1
  61. data/spec/cucumber/cli/configuration_spec.rb +16 -6
  62. data/spec/cucumber/cli/drb_client_spec.rb +1 -1
  63. data/spec/cucumber/cli/main_spec.rb +13 -14
  64. data/spec/cucumber/cli/options_spec.rb +1 -1
  65. data/spec/cucumber/cli/profile_loader_spec.rb +1 -1
  66. data/spec/cucumber/core_ext/proc_spec.rb +1 -1
  67. data/spec/cucumber/formatter/ansicolor_spec.rb +1 -1
  68. data/spec/cucumber/formatter/color_io_spec.rb +1 -1
  69. data/spec/cucumber/formatter/duration_spec.rb +1 -1
  70. data/spec/cucumber/formatter/html_spec.rb +2 -2
  71. data/spec/cucumber/formatter/junit_spec.rb +2 -2
  72. data/spec/cucumber/formatter/progress_spec.rb +3 -3
  73. data/spec/cucumber/parser/feature_parser_spec.rb +5 -5
  74. data/spec/cucumber/parser/table_parser_spec.rb +3 -3
  75. data/spec/cucumber/rb_support/rb_step_definition_spec.rb +7 -7
  76. data/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +1 -1
  77. data/spec/cucumber/step_match_spec.rb +6 -1
  78. data/spec/cucumber/step_mother_spec.rb +18 -10
  79. data/spec/cucumber/tag_expression_spec.rb +88 -90
  80. data/spec/cucumber/wire_support/configuration_spec.rb +29 -12
  81. data/spec/cucumber/wire_support/connection_spec.rb +1 -1
  82. data/spec/cucumber/wire_support/wire_exception_spec.rb +1 -1
  83. data/spec/cucumber/wire_support/wire_language_spec.rb +1 -1
  84. data/spec/cucumber/wire_support/wire_packet_spec.rb +1 -1
  85. data/spec/cucumber/wire_support/wire_step_definition_spec.rb +1 -1
  86. data/spec/cucumber/world/pending_spec.rb +5 -5
  87. metadata +128 -54
@@ -1,3 +1,22 @@
1
+ == 0.6.3 2010-03-02
2
+
3
+ === Bugfixes
4
+ * Split arguments in cucumber.yml with shellwords. Example: myprofile: --out="Features report.html" (Nathaniel Haas)
5
+ * Breakage in Rails 2-3-stable after html_safe is added to the repo. (#577 Aslak Hellesøy)
6
+ * uninitialized constant Cucumber::CODEPAGE (NameError) (#561 Aslak Hellesøy)
7
+ * HTML Formatter is broken in cucumber 0.6.2 and cuke4duke 0.2.3 (#567 Dan Fitch)
8
+ * Ensure consistent load order of support files (#564 Mike Sassak)
9
+ * Fix various places in PDF formatter where HTML entities could break prawn (Matt Wynne)
10
+ * The rerun formatter outputs failed, pending and undefined scenarios (before: only failing) (Aslak Hellesøy)
11
+
12
+ === New features
13
+ * Added "Angenommen" as German synonym for Given (Sven Fuchs, Aslak Hellesøy)
14
+ * New #ask(question, timeout_seconds=60) method available to stepdefs. Asks for input and #announce-s question and answer. (Aslak Hellesøy)
15
+ * Links to step definitions are now clickable in TextMate's HTML report (Rob Aldred)
16
+ * Add diff! message to wire protocol to allow for immediate diff response to invokes (Matt Wynne)
17
+ * Add tags to begin/end scenario messages on wire protocol to support tagged hooks (#571 Matt Wynne)
18
+ * Default timeouts to 120s for invoke, begin_scenario and end_scenario messages in wire protocol (#572 Matt Wynne)
19
+
1
20
  == 0.6.2 2010-01-18
2
21
 
3
22
  === Bugfixes
@@ -1,7 +1,7 @@
1
1
  = Cucumber
2
2
 
3
3
  The main website is at http://cukes.info/
4
- The documentation is at http://github.com/aslakhellesoy/cucumber/wikis/home/
4
+ The documentation is at http://wiki.github.com/aslakhellesoy/cucumber/
5
5
 
6
6
  == Note on Patches/Pull Requests
7
7
 
data/Rakefile CHANGED
@@ -27,6 +27,7 @@ begin
27
27
  gem.add_development_dependency 'nokogiri', '>= 1.4.1'
28
28
  gem.add_development_dependency 'prawn', '= 0.6.3'
29
29
  gem.add_development_dependency 'prawn-format', '= 0.2.3'
30
+ gem.add_development_dependency 'htmlentities', '>= 4.2.0'
30
31
  gem.add_development_dependency 'rspec', '>= 1.3.0'
31
32
  gem.add_development_dependency 'syntax', '>= 1.0.0'
32
33
  gem.add_development_dependency 'spork', '>= 0.7.5' unless Cucumber::JRUBY || Cucumber::WINDOWS
@@ -54,11 +55,7 @@ end
54
55
 
55
56
  Dir['gem_tasks/**/*.rake'].each { |rake| load rake }
56
57
 
57
- if(Cucumber::RUBY_1_9)
58
- task :default => [:check_dependencies, :cucumber] # RSpec doesn't run on 1.9 yet.
59
- else
60
- task :default => [:check_dependencies, :spec, :cucumber]
61
- end
58
+ task :default => [:check_dependencies, :spec, :cucumber]
62
59
 
63
60
  require 'rake/clean'
64
61
  CLEAN.include %w(**/*.{log,pyc})
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 2
2
+ :patch: 3
3
3
  :build:
4
4
  :major: 0
5
5
  :minor: 6
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cucumber}
8
- s.version = "0.6.2"
8
+ s.version = "0.6.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aslak Helles\303\270y"]
12
- s.date = %q{2010-01-18}
12
+ s.date = %q{2010-03-02}
13
13
  s.default_executable = %q{cucumber}
14
14
  s.description = %q{A BDD tool written in Ruby}
15
15
  s.email = %q{cukes@googlegroups.com}
@@ -306,11 +306,13 @@ Gem::Specification.new do |s|
306
306
  "examples/tickets/features/301/filter_background_tagged_hooks.feature",
307
307
  "examples/tickets/features/301/filter_background_tagged_hooks_steps.rb",
308
308
  "examples/tickets/features/306/only_background.feature",
309
+ "examples/tickets/features/half_manual.feature",
309
310
  "examples/tickets/features/lib/eatting_machine.rb",
310
311
  "examples/tickets/features/lib/pantry.rb",
311
312
  "examples/tickets/features/scenario_outline.feature",
312
313
  "examples/tickets/features/step_definitons/246_steps.rb",
313
314
  "examples/tickets/features/step_definitons/248_steps.rb",
315
+ "examples/tickets/features/step_definitons/half_manual_steps.rb",
314
316
  "examples/tickets/features/step_definitons/scenario_outline_steps.rb",
315
317
  "examples/tickets/features/step_definitons/tickets_steps.rb",
316
318
  "examples/tickets/features/table_diffing.feature",
@@ -354,6 +356,7 @@ Gem::Specification.new do |s|
354
356
  "features/profiles.feature",
355
357
  "features/rake_task.feature",
356
358
  "features/report_called_undefined_steps.feature",
359
+ "features/rerun_formatter.feature",
357
360
  "features/simplest.feature",
358
361
  "features/snippet.feature",
359
362
  "features/step_definitions/cucumber_steps.rb",
@@ -371,6 +374,7 @@ Gem::Specification.new do |s|
371
374
  "features/usage_and_stepdefs_formatter.feature",
372
375
  "features/wire_protocol.feature",
373
376
  "features/wire_protocol_table_diffing.feature",
377
+ "features/wire_protocol_tags.feature",
374
378
  "features/wire_protocol_timeouts.feature",
375
379
  "features/work_in_progress.feature",
376
380
  "gem_tasks/contributors.rake",
@@ -546,7 +550,7 @@ Gem::Specification.new do |s|
546
550
 
547
551
  (::) U P G R A D I N G (::)
548
552
 
549
- Thank you for installing cucumber-0.6.2.
553
+ Thank you for installing cucumber-0.6.3.
550
554
  Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
551
555
  for important information about this release. Happy cuking!
552
556
 
@@ -556,7 +560,7 @@ for important information about this release. Happy cuking!
556
560
  s.rdoc_options = ["--charset=UTF-8"]
557
561
  s.require_paths = ["lib"]
558
562
  s.rubyforge_project = %q{rspec}
559
- s.rubygems_version = %q{1.3.5}
563
+ s.rubygems_version = %q{1.3.6}
560
564
  s.summary = %q{Behaviour Driven Development with elegance and joy}
561
565
  s.test_files = [
562
566
  "spec/cucumber/ast/background_spec.rb",
@@ -708,6 +712,7 @@ for important information about this release. Happy cuking!
708
712
  "examples/tickets/features/lib/pantry.rb",
709
713
  "examples/tickets/features/step_definitons/246_steps.rb",
710
714
  "examples/tickets/features/step_definitons/248_steps.rb",
715
+ "examples/tickets/features/step_definitons/half_manual_steps.rb",
711
716
  "examples/tickets/features/step_definitons/scenario_outline_steps.rb",
712
717
  "examples/tickets/features/step_definitons/tickets_steps.rb",
713
718
  "examples/watir/features/step_definitions/search_steps.rb",
@@ -731,6 +736,7 @@ for important information about this release. Happy cuking!
731
736
  s.add_development_dependency(%q<nokogiri>, [">= 1.4.1"])
732
737
  s.add_development_dependency(%q<prawn>, ["= 0.6.3"])
733
738
  s.add_development_dependency(%q<prawn-format>, ["= 0.2.3"])
739
+ s.add_development_dependency(%q<htmlentities>, [">= 4.2.0"])
734
740
  s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
735
741
  s.add_development_dependency(%q<syntax>, [">= 1.0.0"])
736
742
  s.add_development_dependency(%q<spork>, [">= 0.7.5"])
@@ -744,6 +750,7 @@ for important information about this release. Happy cuking!
744
750
  s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
745
751
  s.add_dependency(%q<prawn>, ["= 0.6.3"])
746
752
  s.add_dependency(%q<prawn-format>, ["= 0.2.3"])
753
+ s.add_dependency(%q<htmlentities>, [">= 4.2.0"])
747
754
  s.add_dependency(%q<rspec>, [">= 1.3.0"])
748
755
  s.add_dependency(%q<syntax>, [">= 1.0.0"])
749
756
  s.add_dependency(%q<spork>, [">= 0.7.5"])
@@ -758,6 +765,7 @@ for important information about this release. Happy cuking!
758
765
  s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
759
766
  s.add_dependency(%q<prawn>, ["= 0.6.3"])
760
767
  s.add_dependency(%q<prawn-format>, ["= 0.2.3"])
768
+ s.add_dependency(%q<htmlentities>, [">= 4.2.0"])
761
769
  s.add_dependency(%q<rspec>, [">= 1.3.0"])
762
770
  s.add_dependency(%q<syntax>, [">= 1.0.0"])
763
771
  s.add_dependency(%q<spork>, [">= 0.7.5"])
@@ -5,7 +5,7 @@ Funktionalität: Addition
5
5
  die Summe zweier Zahlen gesagt bekommen
6
6
 
7
7
  Szenariogrundriss: Zwei Zahlen hinzufügen
8
- Gegeben sei ich habe <Eingabe_1> in den Taschenrechner eingegeben
8
+ Angenommen ich habe <Eingabe_1> in den Taschenrechner eingegeben
9
9
  Und ich habe <Eingabe_2> in den Taschenrechner eingegeben
10
10
  Wenn ich <Knopf> drücke
11
11
  Dann sollte das Ergebniss auf dem Bildschirm <Ausgabe> sein
@@ -11,14 +11,14 @@ end
11
11
  After do
12
12
  end
13
13
 
14
- Given /ich habe (\d+) in den Taschenrechner eingegeben/ do |n|
14
+ Angenommen /ich habe (\d+) in den Taschenrechner eingegeben/ do |n|
15
15
  @calc.push n.to_i
16
16
  end
17
17
 
18
- When /ich (\w+) drücke/ do |op|
18
+ Wenn /ich (\w+) drücke/ do |op|
19
19
  @result = @calc.send op
20
20
  end
21
21
 
22
- Then /sollte das Ergebniss auf dem Bildschirm (.*) sein/ do |result|
22
+ Dann /sollte das Ergebniss auf dem Bildschirm (.*) sein/ do |result|
23
23
  @result.should == result.to_f
24
24
  end
@@ -2,72 +2,72 @@ def flunker
2
2
  raise "FAIL"
3
3
  end
4
4
 
5
- Given /^passing$/ do |table|
6
- end
5
+ Given(/^passing$/) do |table| end
6
+
7
7
 
8
- Given /^failing$/ do |string|
8
+ Given /^failing$/ do |string| x=1
9
9
  flunker
10
10
  end
11
11
 
12
- Given /^passing without a table$/ do
13
- end
12
+ Given(/^passing without a table$/) do end
14
13
 
15
- Given /^failing without a table$/ do
14
+
15
+ Given /^failing without a table$/ do x=1
16
16
  flunker
17
17
  end
18
18
 
19
- Given /^a step definition that calls an undefined step$/ do
20
- Given 'this does not exist'
19
+ Given /^a step definition that calls an undefined step$/ do Given 'this does not exist'
21
20
  end
22
21
 
23
- Given /^call step "(.*)"$/ do |step|
22
+
23
+ Given /^call step "(.*)"$/ do |step| x=1
24
24
  Given step
25
25
  end
26
26
 
27
- Given /^'(.+)' cukes$/ do |cukes|
27
+ Given /^'(.+)' cukes$/ do |cukes| x=1
28
28
  raise "We already have #{@cukes} cukes!" if @cukes
29
29
  @cukes = cukes
30
30
  end
31
- Then /^I should have '(.+)' cukes$/ do |cukes|
31
+ Then /^I should have '(.+)' cukes$/ do |cukes| x=1
32
32
  @cukes.should == cukes
33
33
  end
34
34
 
35
- Given /^'(.+)' global cukes$/ do |cukes|
35
+ Given /^'(.+)' global cukes$/ do |cukes| x=1
36
36
  $scenario_runs ||= 0
37
37
  flunker if $scenario_runs >= 1
38
38
  $cukes = cukes
39
39
  $scenario_runs += 1
40
40
  end
41
41
 
42
- Then /^I should have '(.+)' global cukes$/ do |cukes|
42
+ Then /^I should have '(.+)' global cukes$/ do |cukes| x=1
43
43
  $cukes.should == cukes
44
44
  end
45
45
 
46
- Given /^table$/ do |table|
46
+ Given /^table$/ do |table| x=1
47
47
  @table = table
48
48
  end
49
49
 
50
- Given /^multiline string$/ do |string|
50
+ Given /^multiline string$/ do |string| x=1
51
51
  @multiline = string
52
52
  end
53
53
 
54
- Then /^the table should be$/ do |table|
54
+ Then /^the table should be$/ do |table| x=1
55
55
  @table.raw.should == table.raw
56
56
  end
57
57
 
58
- Then /^the multiline string should be$/ do |string|
58
+ Then /^the multiline string should be$/ do |string| x=1
59
59
  @multiline.should == string
60
60
  end
61
61
 
62
- Given /^failing expectation$/ do
62
+ Given /^failing expectation$/ do x=1
63
63
  'this'.should == 'that'
64
64
  end
65
65
 
66
- Given /^unused$/ do
67
- end
66
+ Given(/^unused$/) do end
67
+
68
+
69
+ Given(/^another unused$/) do end
68
70
 
69
- Given /^another unused$/ do
70
- end
71
71
 
72
72
  require 'fileutils'
73
73
 
@@ -0,0 +1,11 @@
1
+ @ask
2
+ Feature: Half manual
3
+ In order to speed up manual tests
4
+ Testers should at least be able to automate parts of it
5
+
6
+ Scenario: Check mailbox
7
+ Given I have signed up on the web
8
+ When I check my mailbox
9
+ Then I should have an email containing "cukes"
10
+
11
+
@@ -0,0 +1,11 @@
1
+ Given /^I have signed up on the web$/ do
2
+ # just pretend we do
3
+ end
4
+
5
+ When /^I check my mailbox$/ do
6
+ @answer = ask("What's in your mailbox? ", 3)
7
+ end
8
+
9
+ Then /^I should have an email containing "([^\"]*)"$/ do |content|
10
+ @answer.should =~ Regexp.new(content)
11
+ end
@@ -3,120 +3,120 @@ Feature: Delayed announcement
3
3
  Background:
4
4
  Given a standard Cucumber project directory structure
5
5
  And a file named "features/step_definitions/steps.rb" with:
6
- """
7
- Given /^I use announce with text "(.*)"$/ do |ann|
6
+ """
7
+ Given /^I use announce with text "(.*)"$/ do |ann| x=1
8
8
  announce(ann)
9
- end
9
+ end
10
10
 
11
- Given /^I use multiple announces$/ do
11
+ Given /^I use multiple announces$/ do x=1
12
12
  announce("Multiple")
13
13
  announce("Announce")
14
- end
14
+ end
15
15
 
16
- Given /^I use announcement (.+) in line (.+) (?:with result (.+))$/ do |ann, line, result|
16
+ Given /^I use announcement (.+) in line (.+) (?:with result (.+))$/ do |ann, line, result| x=1
17
17
  announce("Last announcement") if line == "3"
18
18
  announce("Line: #{line}: #{ann}")
19
19
  fail if result =~ /fail/i
20
- end
20
+ end
21
21
 
22
- Given /^I use announce and step fails$/ do
22
+ Given /^I use announce and step fails$/ do x=1
23
23
  announce("Announce with fail")
24
24
  fail
25
- end
25
+ end
26
26
 
27
- Given /^this step works$/ do
28
- end
29
- """
27
+ Given /^this step works$/ do x=1
28
+ end
29
+ """
30
30
  And a file named "features/f.feature" with:
31
- """
32
- Scenario: S
33
- Given I use announce with text "Ann"
34
- And this step works
35
-
36
- Scenario: S2
37
- Given I use multiple announces
38
- And this step works
39
-
40
- Scenario Outline: S3
41
- Given I use announcement <ann> in line <line>
42
-
43
- Examples:
44
- | line | ann |
45
- | 1 | anno1 |
46
- | 2 | anno2 |
47
- | 3 | anno3 |
48
-
49
- Scenario: S4
50
- Given I use announce and step fails
51
- And this step works
52
-
53
- Scenario Outline: s5
54
- Given I use announcement <ann> in line <line> with result <result>
55
-
56
- Examples:
57
- | line | ann | result |
58
- | 1 | anno1 | fail |
59
- | 2 | anno2 | pass |
31
+ """
32
+ Scenario: S
33
+ Given I use announce with text "Ann"
34
+ And this step works
35
+
36
+ Scenario: S2
37
+ Given I use multiple announces
38
+ And this step works
39
+
40
+ Scenario Outline: S3
41
+ Given I use announcement <ann> in line <line>
42
+
43
+ Examples:
44
+ | line | ann |
45
+ | 1 | anno1 |
46
+ | 2 | anno2 |
47
+ | 3 | anno3 |
48
+
49
+ Scenario: S4
50
+ Given I use announce and step fails
51
+ And this step works
52
+
53
+ Scenario Outline: s5
54
+ Given I use announcement <ann> in line <line> with result <result>
55
+
56
+ Examples:
57
+ | line | ann | result |
58
+ | 1 | anno1 | fail |
59
+ | 2 | anno2 | pass |
60
60
  """
61
61
 
62
62
  Scenario: Delayed announcements feature
63
- When I run cucumber --format pretty features/f.feature
64
- Then the output should contain
65
- """
66
- Scenario: S # features/f.feature:1
67
- Given I use announce with text "Ann" # features/step_definitions/steps.rb:1
68
- Ann
69
- And this step works # features/step_definitions/steps.rb:21
70
-
71
- Scenario: S2 # features/f.feature:5
72
- Given I use multiple announces # features/step_definitions/steps.rb:5
73
- Multiple
74
- Announce
75
- And this step works # features/step_definitions/steps.rb:21
76
-
77
- Scenario Outline: S3 # features/f.feature:9
78
- Given I use announcement <ann> in line <line> # features/f.feature:10
79
-
80
- Examples:
81
- | line | ann |
82
- | 1 | anno1 |
83
- | 2 | anno2 |
84
- | 3 | anno3 |
85
-
86
- Scenario: S4 # features/f.feature:18
87
- Given I use announce and step fails # features/step_definitions/steps.rb:16
88
- Announce with fail
89
- (RuntimeError)
90
- ./features/step_definitions/steps.rb:18:in `/^I use announce and step fails$/'
91
- features/f.feature:19:in `Given I use announce and step fails'
92
- And this step works # features/step_definitions/steps.rb:21
93
-
94
- Scenario Outline: s5 # features/f.feature:22
95
- Given I use announcement <ann> in line <line> with result <result> # features/step_definitions/steps.rb:10
96
-
97
- Examples:
98
- | line | ann | result |
99
- | 1 | anno1 | fail | Line: 1: anno1
100
- (RuntimeError)
101
- ./features/step_definitions/steps.rb:13:in `/^I use announcement (.+) in line (.+) (?:with result (.+))$/'
102
- features/f.feature:23:in `Given I use announcement <ann> in line <line> with result <result>'
103
- | 2 | anno2 | pass | Line: 2: anno2
104
- """
63
+ When I run cucumber --format pretty features/f.feature
64
+ Then the output should contain
65
+ """
66
+ Scenario: S # features/f.feature:1
67
+ Given I use announce with text "Ann" # features/step_definitions/steps.rb:1
68
+ Ann
69
+ And this step works # features/step_definitions/steps.rb:21
70
+
71
+ Scenario: S2 # features/f.feature:5
72
+ Given I use multiple announces # features/step_definitions/steps.rb:5
73
+ Multiple
74
+ Announce
75
+ And this step works # features/step_definitions/steps.rb:21
76
+
77
+ Scenario Outline: S3 # features/f.feature:9
78
+ Given I use announcement <ann> in line <line> # features/f.feature:10
79
+
80
+ Examples:
81
+ | line | ann |
82
+ | 1 | anno1 |
83
+ | 2 | anno2 |
84
+ | 3 | anno3 |
85
+
86
+ Scenario: S4 # features/f.feature:18
87
+ Given I use announce and step fails # features/step_definitions/steps.rb:16
88
+ Announce with fail
89
+ (RuntimeError)
90
+ ./features/step_definitions/steps.rb:18:in `/^I use announce and step fails$/'
91
+ features/f.feature:19:in `Given I use announce and step fails'
92
+ And this step works # features/step_definitions/steps.rb:21
93
+
94
+ Scenario Outline: s5 # features/f.feature:22
95
+ Given I use announcement <ann> in line <line> with result <result> # features/step_definitions/steps.rb:10
96
+
97
+ Examples:
98
+ | line | ann | result |
99
+ | 1 | anno1 | fail | Line: 1: anno1
100
+ (RuntimeError)
101
+ ./features/step_definitions/steps.rb:13:in `/^I use announcement (.+) in line (.+) (?:with result (.+))$/'
102
+ features/f.feature:23:in `Given I use announcement <ann> in line <line> with result <result>'
103
+ | 2 | anno2 | pass | Line: 2: anno2
104
+ """
105
105
 
106
106
  Scenario: Non-delayed announcements feature (progress formatter)
107
107
  When I run cucumber --format progress features/f.feature
108
108
  Then the output should contain
109
- """
110
- Ann
111
- ..
112
- Multiple
113
-
114
- Announce
115
- ..-UUUUUU
116
- Announce with fail
117
- F--
118
- Line: 1: anno1
119
- FFF
120
- Line: 2: anno2
121
- ...
122
- """
109
+ """
110
+ Ann
111
+ ..
112
+ Multiple
113
+
114
+ Announce
115
+ ..-UUUUUU
116
+ Announce with fail
117
+ F--
118
+ Line: 1: anno1
119
+ FFF
120
+ Line: 2: anno2
121
+ ...
122
+ """