Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 147 lines (122 sloc) 4.556 kb
853e9aaf »
2010-02-12 output detection feature
1 Feature: Output
2
3 In order to specify expected output
4 As a developer using Cucumber
bbdf052e »
2010-05-11 Change regexen to avoid conflicts with e.g. Cucumber-Rails. This ring…
5 I want to use the "the output should contain" step
853e9aaf »
2010-02-12 output detection feature
6
ca536ee2 »
2010-07-07 Added a new feature
7 Scenario: Run unknown command
8 When I run "neverever gonna work"
9 Then the output should contain:
10 """
4e948b8d »
2010-09-24 All tests passing with background_process
11 No such file or directory - neverever gonna work
ca536ee2 »
2010-07-07 Added a new feature
12 """
13
6b443513 »
2010-02-12 support partial and exact string matches (single or multiline)
14 Scenario: Detect subset of one-line output
9cb4aaac »
2010-02-12 double quote system commands
15 When I run "ruby -e 'puts \"hello world\"'"
bbdf052e »
2010-05-11 Change regexen to avoid conflicts with e.g. Cucumber-Rails. This ring…
16 Then the output should contain "hello world"
6b443513 »
2010-02-12 support partial and exact string matches (single or multiline)
17
01b7c800 »
2010-02-25 Get coverage back to 100%
18 Scenario: Detect subset of one-line output
19 When I run "echo 'hello world'"
bbdf052e »
2010-05-11 Change regexen to avoid conflicts with e.g. Cucumber-Rails. This ring…
20 Then the output should contain "hello world"
01b7c800 »
2010-02-25 Get coverage back to 100%
21
e4e5204e »
2010-02-19 add a couple more negative steps
22 Scenario: Detect absence of one-line output
23 When I run "ruby -e 'puts \"hello world\"'"
bbdf052e »
2010-05-11 Change regexen to avoid conflicts with e.g. Cucumber-Rails. This ring…
24 Then the output should not contain "good-bye"
e4e5204e »
2010-02-19 add a couple more negative steps
25
6b443513 »
2010-02-12 support partial and exact string matches (single or multiline)
26 Scenario: Detect subset of multiline output
86eefc8d »
2010-02-24 Added an @announce tag which is useful for seeing what's outputted. A…
27 When I run "ruby -e 'puts \"hello\\nworld\"'"
bbdf052e »
2010-05-11 Change regexen to avoid conflicts with e.g. Cucumber-Rails. This ring…
28 Then the output should contain:
6b443513 »
2010-02-12 support partial and exact string matches (single or multiline)
29 """
30 hello
31 """
e4e5204e »
2010-02-19 add a couple more negative steps
32
33 Scenario: Detect subset of multiline output
86eefc8d »
2010-02-24 Added an @announce tag which is useful for seeing what's outputted. A…
34 When I run "ruby -e 'puts \"hello\\nworld\"'"
bbdf052e »
2010-05-11 Change regexen to avoid conflicts with e.g. Cucumber-Rails. This ring…
35 Then the output should not contain:
e4e5204e »
2010-02-19 add a couple more negative steps
36 """
37 good-bye
38 """
6b443513 »
2010-02-12 support partial and exact string matches (single or multiline)
39
40 Scenario: Detect exact one-line output
9cb4aaac »
2010-02-12 double quote system commands
41 When I run "ruby -e 'puts \"hello world\"'"
bbdf052e »
2010-05-11 Change regexen to avoid conflicts with e.g. Cucumber-Rails. This ring…
42 Then the output should contain exactly "hello world\n"
6b443513 »
2010-02-12 support partial and exact string matches (single or multiline)
43
44 Scenario: Detect exact multiline output
86eefc8d »
2010-02-24 Added an @announce tag which is useful for seeing what's outputted. A…
45 When I run "ruby -e 'puts \"hello\\nworld\"'"
bbdf052e »
2010-05-11 Change regexen to avoid conflicts with e.g. Cucumber-Rails. This ring…
46 Then the output should contain exactly:
6b443513 »
2010-02-12 support partial and exact string matches (single or multiline)
47 """
48 hello
49 world
50
51 """
277588ab »
2010-02-12 combined step for partial output and exit status (passing)
52
a3685d78 »
2010-02-25 More tags
53 @announce
2dc8e026 »
2010-03-04 add "I should see matching" for regex in partial_output
54 Scenario: Detect subset of one-line output with regex
55 When I run "ruby --version"
bbdf052e »
2010-05-11 Change regexen to avoid conflicts with e.g. Cucumber-Rails. This ring…
56 Then the output should contain "ruby"
57 And the output should match /ruby ([\d]+\.[\d]+\.[\d]+)(p\d+)? \(.*$/
2dc8e026 »
2010-03-04 add "I should see matching" for regex in partial_output
58
0d96f1bf »
2010-03-04 multiline should see matching step allows ".*" to match newlines
59 @announce
2dc8e026 »
2010-03-04 add "I should see matching" for regex in partial_output
60 Scenario: Detect subset of multiline output with regex
0d96f1bf »
2010-03-04 multiline should see matching step allows ".*" to match newlines
61 When I run "ruby -e 'puts \"hello\\nworld\\nextra line1\\nextra line2\\nimportant line\"'"
bbdf052e »
2010-05-11 Change regexen to avoid conflicts with e.g. Cucumber-Rails. This ring…
62 Then the output should match:
2dc8e026 »
2010-03-04 add "I should see matching" for regex in partial_output
63 """
64 he..o
65 wor.d
0d96f1bf »
2010-03-04 multiline should see matching step allows ".*" to match newlines
66 .*
67 important line
2dc8e026 »
2010-03-04 add "I should see matching" for regex in partial_output
68 """
69
70 @announce
7a53e622 »
2010-02-12 clean up generated files
71 Scenario: Match passing exit status and partial output
86eefc8d »
2010-02-24 Added an @announce tag which is useful for seeing what's outputted. A…
72 When I run "ruby -e 'puts \"hello\\nworld\"'"
277588ab »
2010-02-12 combined step for partial output and exit status (passing)
73 Then it should pass with:
74 """
75 hello
76 """
7a53e622 »
2010-02-12 clean up generated files
77
a3685d78 »
2010-02-25 More tags
78 @announce-stdout
7a53e622 »
2010-02-12 clean up generated files
79 Scenario: Match failing exit status and partial output
86eefc8d »
2010-02-24 Added an @announce tag which is useful for seeing what's outputted. A…
80 When I run "ruby -e 'puts \"hello\\nworld\";exit 99'"
7a53e622 »
2010-02-12 clean up generated files
81 Then it should fail with:
82 """
83 hello
84 """
a3685d78 »
2010-02-25 More tags
85
2d5e941f »
2010-09-09 Add step definition to allow matching pass|fail output against regex
86 @announce-stdout
87 Scenario: Match failing exit status and output with regex
88 When I run "ruby -e 'puts \"hello\\nworld\";exit 99'"
89 Then it should fail with regex:
90 """
91 hello\s*world
92 """
93
a3685d78 »
2010-02-25 More tags
94 @announce-cmd
6e5a6b4e »
2010-02-12 generalize 'I should see' to combined streams
95 Scenario: Match output in stdout
86eefc8d »
2010-02-24 Added an @announce tag which is useful for seeing what's outputted. A…
96 When I run "ruby -e 'puts \"hello\\nworld\"'"
6e5a6b4e »
2010-02-12 generalize 'I should see' to combined streams
97 Then the stdout should contain "hello"
98 Then the stderr should not contain "hello"
99
a1519806 »
2010-03-04 add @announce-stdout tag
100 @announce-stderr
6e5a6b4e »
2010-02-12 generalize 'I should see' to combined streams
101 Scenario: Match output in stderr
86eefc8d »
2010-02-24 Added an @announce tag which is useful for seeing what's outputted. A…
102 When I run "ruby -e 'STDERR.puts \"hello\\nworld\";exit 99'"
6e5a6b4e »
2010-02-12 generalize 'I should see' to combined streams
103 Then the stderr should contain "hello"
104 Then the stdout should not contain "hello"
edc6d32c »
2010-09-28 Failing WIP, cucumber.yml for WIP and scenarios for future work
105
b6cf671e »
2010-09-28 Clarify scenario names
106 Scenario: Detect output from all processes
edc6d32c »
2010-09-28 Failing WIP, cucumber.yml for WIP and scenarios for future work
107 When I run "ruby -e 'puts \"hello world!\"'"
108 And I run "ruby -e 'puts gets.chomp.reverse'" interactively
109 And I type "hello"
110 Then the output should contain exactly:
111 """
112 hello world!
29e5f0a5 »
2010-09-28 Detect combined output from running a regular and interactive process in
113 olleh
57640626 »
2010-10-11 Simplify, cleanup output handling
114
edc6d32c »
2010-09-28 Failing WIP, cucumber.yml for WIP and scenarios for future work
115 """
116
b6cf671e »
2010-09-28 Clarify scenario names
117 Scenario: Detect stdout from all processes
4b0b2d3d »
2010-09-28 WIP detecting combined stdout
118 When I run "ruby -e 'puts \"hello world!\"'"
119 And I run "ruby -e 'puts gets.chomp.reverse'" interactively
120 And I type "hello"
121 Then the stdout should contain "hello world!\nolleh"
122 And the stderr should not contain "hello world!\nolleh"
123
b6cf671e »
2010-09-28 Clarify scenario names
124 Scenario: Detect stderr from all processes
a6596f26 »
2010-09-30 Detect output included in all stderr
125 When I run "ruby -e 'STDERR.puts \"hello world!\"'"
126 And I run "ruby -e 'STDERR.puts gets.chomp.reverse'" interactively
127 And I type "hello"
128 Then the stderr should contain "hello world!\nolleh"
129 And the stdout should not contain "hello world!\nolleh"
130
edc6d32c »
2010-09-28 Failing WIP, cucumber.yml for WIP and scenarios for future work
131 Scenario: Detect output from named source
bdfa4411 »
2010-09-30 WIP detecting output from named source
132 When I run "ruby -e 'puts :simple'"
133 And I run "ruby -e 'puts gets.chomp'" interactively
134 And I type "interactive"
135 Then the output from "ruby -e 'puts :simple'" should contain "simple"
136 And the output from "ruby -e 'puts gets.chomp'" should not contain "simple"
137
1391cfd5 »
2010-10-20 Detect stdout from a named source
138 Scenario: Detect stdout from named source
139 When I run "ruby -e 'puts :hello'"
140 And I run "ruby -e 'puts :goodbye'"
141 Then the stdout from "ruby -e 'puts :hello'" should contain "hello"
142 And the stderr from "ruby -e 'puts :hello'" should not contain "hello"
143 And the stdout from "ruby -e 'puts :goodbye'" should not contain "hello"
144
bdfa4411 »
2010-09-30 WIP detecting output from named source
145 Scenario: Detect output from named source with custom name
edc6d32c »
2010-09-28 Failing WIP, cucumber.yml for WIP and scenarios for future work
146 Scenario: Detect stderr from named source
Something went wrong with that request. Please try again.