cucumber 0.10.5 → 0.10.6
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.
- data/.gitignore +2 -1
- data/.yardopts +0 -0
- data/Gemfile.lock +104 -0
- data/{History.txt → History.md} +377 -367
- data/LICENSE +1 -1
- data/{README.rdoc → README.md} +7 -7
- data/Rakefile +2 -1
- data/cucumber.gemspec +6 -4
- data/fixtures/self_test/features/support/bubble_256x256.png +0 -0
- data/fixtures/self_test/features/support/env.rb +8 -0
- data/gem_tasks/cucumber.rake +0 -1
- data/gem_tasks/yard.rake +18 -0
- data/gem_tasks/yard/default/layout/html/bubble_32x32.png +0 -0
- data/gem_tasks/yard/default/layout/html/footer.erb +5 -0
- data/gem_tasks/yard/default/layout/html/index.erb +1 -0
- data/gem_tasks/yard/default/layout/html/layout.erb +25 -0
- data/gem_tasks/yard/default/layout/html/logo.erb +1 -0
- data/gem_tasks/yard/default/layout/html/setup.rb +4 -0
- data/legacy_features/announce.feature +1 -1
- data/legacy_features/html_formatter/a.html +44 -17
- data/lib/cucumber/formatter/html.rb +3 -1
- data/lib/cucumber/platform.rb +1 -1
- metadata +52 -23
- data/gem_tasks/sdoc.rake +0 -12
data/.gitignore
CHANGED
data/.yardopts
ADDED
File without changes
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
cucumber (0.10.6)
|
5
|
+
builder (>= 2.1.2)
|
6
|
+
diff-lcs (>= 1.1.2)
|
7
|
+
gherkin (~> 2.4.0)
|
8
|
+
json (>= 1.4.6)
|
9
|
+
term-ansicolor (>= 1.0.5)
|
10
|
+
|
11
|
+
GEM
|
12
|
+
remote: http://rubygems.org/
|
13
|
+
specs:
|
14
|
+
aruba (0.3.7)
|
15
|
+
childprocess (>= 0.1.9)
|
16
|
+
cucumber (>= 0.10.5)
|
17
|
+
rspec (>= 2.6.0)
|
18
|
+
builder (3.0.0)
|
19
|
+
capybara (1.0.0.rc1)
|
20
|
+
mime-types (>= 1.16)
|
21
|
+
nokogiri (>= 1.3.3)
|
22
|
+
rack (>= 1.0.0)
|
23
|
+
rack-test (>= 0.5.4)
|
24
|
+
selenium-webdriver (~> 0.2.0)
|
25
|
+
xpath (~> 0.1.4)
|
26
|
+
childprocess (0.1.9)
|
27
|
+
ffi (~> 1.0.6)
|
28
|
+
diff-lcs (1.1.2)
|
29
|
+
ffi (1.0.9)
|
30
|
+
gherkin (2.4.0)
|
31
|
+
json (>= 1.4.6)
|
32
|
+
innate (2011.04)
|
33
|
+
rack (>= 1.1.0)
|
34
|
+
json (1.5.1)
|
35
|
+
json_pure (1.5.1)
|
36
|
+
mime-types (1.16)
|
37
|
+
nokogiri (1.4.4)
|
38
|
+
prawn (0.8.4)
|
39
|
+
prawn-core (< 0.9, >= 0.8.4)
|
40
|
+
prawn-layout (< 0.9, >= 0.8.4)
|
41
|
+
prawn-security (< 0.9, >= 0.8.4)
|
42
|
+
prawn-core (0.8.4)
|
43
|
+
prawn-layout (0.8.4)
|
44
|
+
prawn-security (0.8.4)
|
45
|
+
rack (1.3.0)
|
46
|
+
rack-test (0.6.0)
|
47
|
+
rack (>= 1.0)
|
48
|
+
rake (0.9.2)
|
49
|
+
ramaze (2011.01.30)
|
50
|
+
innate (>= 2010.03)
|
51
|
+
rdiscount (1.6.8)
|
52
|
+
rspec (2.6.0)
|
53
|
+
rspec-core (~> 2.6.0)
|
54
|
+
rspec-expectations (~> 2.6.0)
|
55
|
+
rspec-mocks (~> 2.6.0)
|
56
|
+
rspec-core (2.6.4)
|
57
|
+
rspec-expectations (2.6.0)
|
58
|
+
diff-lcs (~> 1.1.2)
|
59
|
+
rspec-mocks (2.6.0)
|
60
|
+
rubyzip (0.9.4)
|
61
|
+
selenium-webdriver (0.2.1)
|
62
|
+
childprocess (>= 0.1.7)
|
63
|
+
ffi (>= 1.0.7)
|
64
|
+
json_pure
|
65
|
+
rubyzip
|
66
|
+
simplecov (0.4.2)
|
67
|
+
simplecov-html (~> 0.4.4)
|
68
|
+
simplecov-html (0.4.5)
|
69
|
+
sinatra (1.2.6)
|
70
|
+
rack (~> 1.1)
|
71
|
+
tilt (< 2.0, >= 1.2.2)
|
72
|
+
spork (0.9.0.rc8)
|
73
|
+
syntax (1.0.0)
|
74
|
+
term-ansicolor (1.0.5)
|
75
|
+
tilt (1.3.2)
|
76
|
+
webrat (0.7.3)
|
77
|
+
nokogiri (>= 1.2.0)
|
78
|
+
rack (>= 1.0)
|
79
|
+
rack-test (>= 0.5.3)
|
80
|
+
xpath (0.1.4)
|
81
|
+
nokogiri (~> 1.3)
|
82
|
+
yard (0.7.1)
|
83
|
+
|
84
|
+
PLATFORMS
|
85
|
+
ruby
|
86
|
+
|
87
|
+
DEPENDENCIES
|
88
|
+
aruba (>= 0.3.7)
|
89
|
+
capybara (>= 1.0.0.rc1)
|
90
|
+
cucumber!
|
91
|
+
nokogiri (>= 1.4.4)
|
92
|
+
prawn (= 0.8.4)
|
93
|
+
prawn-layout (= 0.8.4)
|
94
|
+
rack-test (>= 0.5.7)
|
95
|
+
rake (>= 0.8.7)
|
96
|
+
ramaze
|
97
|
+
rdiscount (= 1.6.8)
|
98
|
+
rspec (>= 2.6.0)
|
99
|
+
simplecov (>= 0.4.2)
|
100
|
+
sinatra (>= 1.2.6)
|
101
|
+
spork (>= 0.9.0.rc7)
|
102
|
+
syntax (>= 1.0.0)
|
103
|
+
webrat (>= 0.7.3)
|
104
|
+
yard (= 0.7.1)
|
data/{History.txt → History.md}
RENAMED
@@ -1,33 +1,43 @@
|
|
1
|
-
|
1
|
+
## [v0.10.6](https://github.com/cucumber/cucumber/compare/v0.10.5...v0.10.6)
|
2
2
|
|
3
|
-
|
3
|
+
### New Features
|
4
|
+
* API docs at http://cukes.info/cucumber/api/ruby/latest/
|
5
|
+
|
6
|
+
### Bugfixes
|
7
|
+
* Fixed a regression in the HTML formatter's #embed implementation (#77 Aslak Hellesøy)
|
8
|
+
|
9
|
+
## [v0.10.5](https://github.com/cucumber/cucumber/compare/v0.10.3...v0.10.5)
|
10
|
+
|
11
|
+
(0.10.4 was forgotten!)
|
12
|
+
|
13
|
+
### Changed features
|
4
14
|
* The announce method is deprecated. Use puts instead (#67 Aslak Hellesøy)
|
5
15
|
* The announce_world method is gone. Use puts(self) instead (#67 Aslak Hellesøy)
|
6
16
|
|
7
|
-
|
17
|
+
### New Features
|
8
18
|
* Better JUnit formatter support for sub directories and scenario outlines (#59, #61, #62 Matt Simpson, Kenny Ortmann)
|
9
19
|
|
10
|
-
|
20
|
+
### Bugfixes
|
11
21
|
* Fix for Gem.available? deprecation warning (#75 Jake Benilov)
|
12
22
|
* Update URLs to reflect Cucumber's new location on Github (Jake Benilov)
|
13
23
|
|
14
|
-
|
24
|
+
## [v0.10.3](https://github.com/cucumber/cucumber/compare/v0.10.2...v0.10.3)
|
15
25
|
|
16
|
-
|
26
|
+
### New Features
|
17
27
|
* Better JUnit formatter support for sub directories and scenario outlines (#59 Matt Simpson)
|
18
28
|
* Coloured output that spans several lines sets colours for each line. (Aslak Hellesøy)
|
19
29
|
* New bundler attribute on the Rake task, allowing faster execution. (Aslak Hellesøy)
|
20
30
|
* Fix Table#rows cell ordering in ruby 1.8. (#47_github Brian Dunn)
|
21
31
|
* JUnit Formatter: record skipped/pending/undefined scenario results (#655 meeee)
|
22
32
|
|
23
|
-
|
33
|
+
## [v0.10.2](https://github.com/cucumber/cucumber/compare/v0.10.1...v0.10.2)
|
24
34
|
|
25
|
-
|
35
|
+
### Bugfixes
|
26
36
|
* Neuter both MiniTest::Unit and Test::Unit's overzealous test runners. (Aslak Hellesøy)
|
27
37
|
|
28
|
-
|
38
|
+
## [v0.10.1](https://github.com/cucumber/cucumber/compare/v0.10.0...v0.10.1)
|
29
39
|
|
30
|
-
|
40
|
+
### New Features
|
31
41
|
* The #embed method can take a 3rd optional label argument. In the HTML report that's used for the link title. (Pat Leamon)
|
32
42
|
* Render .wire files through ERB (Kevin Olbrich)
|
33
43
|
* Happy coexistence with Rake 0.9 (Cezary Baginski)
|
@@ -40,236 +50,236 @@
|
|
40
50
|
* Include scenario file reference in html formatter output (Brandon Faloona)
|
41
51
|
* Relax gem dependencies to use >= instead of ~> (Rob Slifka, Aslak Hellesøy)
|
42
52
|
|
43
|
-
|
53
|
+
### Bugfixes
|
44
54
|
* Missing methods in Runtime::ForProgrammingLanguages - make v8 example run again (Chris Mytton)
|
45
55
|
* Features files are sorted before they are executed, giving consistent results across different OSes (Guewen Baconnier)
|
46
56
|
* Remove duplicate lines in backtraces in the HTML report (Jari Bakken)
|
47
57
|
|
48
|
-
|
58
|
+
## [v0.10.0](https://github.com/cucumber/cucumber/compare/v0.9.4...v0.10.0)
|
49
59
|
|
50
60
|
We're bumping the minor number in this release because there are some incompatible changes in the JSON support.
|
51
61
|
This should not affect users. The major new feature in this release is ANSICON support for Windows users.
|
52
62
|
|
53
|
-
|
54
|
-
*
|
63
|
+
### New Features
|
64
|
+
* map_column! should allow a string or symbol as the column name passed in (Ed Schmalzle)
|
55
65
|
* Deprecate win32console and use ANSICON instead (Boško Ivanišević)
|
56
66
|
* Set builder dependency to >= 2.1.2, which will work with both Rails 2 and 3. (bUg., David Trasbo, Matt Wynne)
|
57
67
|
|
58
|
-
|
68
|
+
### Bugfixes
|
59
69
|
* Changed the HTML formatter to show Scenarios with 'Pending' steps to be yellow rather than green (Arti)
|
60
70
|
|
61
|
-
|
71
|
+
### Changed Features
|
62
72
|
* JSON output now contains optional "match", "result" and "embeddings" elements underneath each step. (Aslak Hellesøy)
|
63
73
|
|
64
|
-
|
74
|
+
## [v0.9.4](https://github.com/cucumber/cucumber/compare/v0.9.3...v0.9.4)
|
65
75
|
|
66
|
-
|
76
|
+
### Bugfixes
|
67
77
|
* Superfluous space after step_keyword value in snippet_text message (#679 Aslak Hellesøy)
|
68
78
|
* Better Handling for "puts" in HTML formatter (#676 Stephen Kennedy)
|
69
79
|
* Too many open files - getcwd (#666 Aslak Hellesøy)
|
70
80
|
* Cucumber 0.9.3 prevents Test::Unit from running (#677 Aslak Hellesøy)
|
71
81
|
* Performance degradation when running feature files with over 1000 steps (#675 Dimitri Geshef)
|
72
82
|
|
73
|
-
|
83
|
+
## [v0.9.3](https://github.com/cucumber/cucumber/compare/v0.9.2...v0.9.3)
|
74
84
|
|
75
|
-
|
85
|
+
### Bugfixes
|
76
86
|
* Better JSON representation of Regexps (Aslak Hellesøy)
|
77
87
|
* Update to work with latest spork (Matt Wynne)
|
78
88
|
* Prevent MiniTest::Unit#autorun from running in at_exit hook. (Aslak Hellesøy)
|
79
89
|
* Fixed incorect --help for --strict. It fails on both pending and undefined. (Aslak Hellesøy)
|
80
90
|
|
81
|
-
|
91
|
+
## [v0.9.2](https://github.com/cucumber/cucumber/compare/v0.9.1...v0.9.2)
|
82
92
|
|
83
|
-
|
93
|
+
### Bugfixes
|
84
94
|
* Too many open files - getcwd (#666 Aslak Hellesøy)
|
85
95
|
|
86
|
-
|
96
|
+
## [v0.9.1](https://github.com/cucumber/cucumber/compare/v0.9.0...v0.9.1)
|
87
97
|
|
88
|
-
|
98
|
+
### Bugfixes
|
89
99
|
* Just a minor internal change to make Cuke4Duke happy. (Aslak Hellesøy)
|
90
100
|
|
91
|
-
|
101
|
+
## [v0.9.0](https://github.com/cucumber/cucumber/compare/v0.8.5...v0.9.0)
|
92
102
|
|
93
103
|
Maintenance release for the new release of Gherkin 2.2.3.
|
94
104
|
|
95
|
-
|
105
|
+
### Bugfixes
|
96
106
|
* Compatibility with rspec-2.0.0.beta.19 mocks (Aslak Hellesøy)
|
97
107
|
* JUnit formatter now puts output in CDATA sections. (Dmitry Amelchenko)
|
98
108
|
|
99
|
-
|
109
|
+
### New features
|
100
110
|
* --dry-run now shows snippets (Ben Hall)
|
101
111
|
* Use Bundler for dependency management. (Aslak Hellesøy, Rob Hunter)
|
102
112
|
|
103
|
-
|
113
|
+
### Removed features
|
104
114
|
* No more Jeweler
|
105
115
|
|
106
|
-
|
116
|
+
### Internal changes
|
107
117
|
* Big refactoring of StepMother (Matt Wynne)
|
108
118
|
|
109
|
-
|
119
|
+
## [v0.8.5](https://github.com/cucumber/cucumber/compare/v0.8.4...v0.8.5)
|
110
120
|
|
111
|
-
|
121
|
+
### Bugfixes
|
112
122
|
* Location of stepdefs outside the project (in gems) are reported incorrectly. (#583 Aslak Hellesøy)
|
113
123
|
* Cucumber::Rake::Task uses 'bundle exec' when using bundler (#626 John Firebaugh)
|
114
124
|
|
115
|
-
|
125
|
+
## [v0.8.4](https://github.com/cucumber/cucumber/compare/v0.8.3...v0.8.4)
|
116
126
|
|
117
|
-
|
127
|
+
### Bugfixes
|
118
128
|
* Fix "Errno::EADDRNOTAVAIL" errors that may be received with spork on Snow Leopard. (Lucas Mundim)
|
119
129
|
|
120
|
-
|
130
|
+
### New features
|
121
131
|
* Detect limit for negative tags (#636 Aslak Hellesøy)
|
122
132
|
* Support for RSpec 2 doubles (mocks and stubs) (Aslak Hellesøy)
|
123
133
|
|
124
|
-
|
134
|
+
## [v0.8.3](https://github.com/cucumber/cucumber/compare/v0.8.2...v0.8.3)
|
125
135
|
|
126
136
|
Just a quick bugfix release.
|
127
137
|
|
128
|
-
|
138
|
+
### Bugfixes
|
129
139
|
* Scenario outlines that fail with exception exit process (Aslak Hellesøy)
|
130
140
|
|
131
|
-
|
141
|
+
## [v0.8.2](https://github.com/cucumber/cucumber/compare/v0.8.1...v0.8.2)
|
132
142
|
|
133
143
|
Bugfix release which most importantly fixes an issue with the gem's gemspec.
|
134
144
|
|
135
|
-
|
145
|
+
### Bufixes
|
136
146
|
* Fix v8 support which broke in 0.8.1 because of new gherkin API (Aslak Hellesøy)
|
137
147
|
* Call Around hooks for each example in scenario outlines. (John Firebaugh)
|
138
148
|
* Remove extraneous tmp file from the gemspec, which broke installation in some environments. (Fernando Brito, Aslak Hellesøy)
|
139
149
|
* 0.8.1 fails on JRuby (#627 Aslak Hellesøy)
|
140
150
|
|
141
|
-
|
151
|
+
### New Features
|
142
152
|
* JavaScript to Hide/Expand Scenarios in HTML report (#621 stkenned)
|
143
153
|
|
144
|
-
|
154
|
+
## [v0.8.1](https://github.com/cucumber/cucumber/compare/v0.8.0...v0.8.1)
|
145
155
|
|
146
|
-
|
156
|
+
### Bufixes
|
147
157
|
* generate test report fails: ast/outline_table.rb fails in status() (#615 Aslak Hellesøy)
|
148
158
|
|
149
|
-
|
159
|
+
### New Features
|
150
160
|
* Undefined steps with integers (Given 3 cukes) will generate snippets like (Given /(\d+) cukes/). (Aslak Hellesøy)
|
151
161
|
|
152
|
-
|
162
|
+
## [v0.8.0](https://github.com/cucumber/cucumber/compare/v0.7.3...v0.8.0)
|
153
163
|
|
154
|
-
|
164
|
+
### Bugfixes
|
155
165
|
* Require profile option causes a NoMethodError for Cucumber with JRuby (#601 John Firebaugh)
|
156
166
|
* Deprecations warnings with Spork + Cucumber + RSpec 2.0. (#619 Brian Cardarella)
|
157
167
|
* Fixed edge case compatibility problem with Gherkin 1.0.30. (#618 Aslak Hellesøy)
|
158
168
|
|
159
|
-
|
169
|
+
### New features
|
160
170
|
* Better table support in the V8 Javascript support (Joseph Wilk)
|
161
171
|
* JSON formatters (json and json_pretty). (Jari Bakken)
|
162
172
|
|
163
|
-
|
173
|
+
### Removed features
|
164
174
|
* The --no-diff option is removed. If you're using RSpec you will *always* get diffs. (Aslak Hellesøy)
|
165
175
|
|
166
|
-
|
176
|
+
### Changed Features
|
167
177
|
* Upgraded to be compatible with rspec 2.0.0.beta.10 (Aslak Hellesøy)
|
168
178
|
* Ruby snippets will use "([^"]*)" instead of "([^\"]*)"$/ - wasn't properly fixed in 0.7.1. (Aslak Hellesøy)
|
169
179
|
* Preserve the order features files are passed and use this for execution order (#617 Joseph Wilk)
|
170
180
|
|
171
|
-
|
181
|
+
## [v0.7.3](https://github.com/cucumber/cucumber/compare/v0.7.2...v0.7.3)
|
172
182
|
|
173
|
-
|
183
|
+
### New Features
|
174
184
|
* Table cells can now contain escaped bars - \| and escaped backslashes - \\. (Gregory Hnatiuk, Aslak Hellesøy)
|
175
185
|
* Added support for Around hooks. (#605 John Firebaugh)
|
176
186
|
|
177
|
-
|
187
|
+
## [v0.7.2](https://github.com/cucumber/cucumber/compare/v0.7.1...v0.7.2)
|
178
188
|
|
179
|
-
|
189
|
+
### Bugfixes
|
180
190
|
* REALLY add backwards compatibility fix (with deprecation warning) for legacy 0.6.4 formatters. (Aslak Hellesøy)
|
181
191
|
|
182
|
-
|
192
|
+
## [v0.7.1](https://github.com/cucumber/cucumber/compare/v0.7.0...v0.7.1)
|
183
193
|
|
184
|
-
|
194
|
+
### Bugfixes
|
185
195
|
* Add backwards compatibility fix (with deprecation warning) for legacy 0.6.4 formatters. (Aslak Hellesøy)
|
186
196
|
|
187
|
-
|
197
|
+
### Changed Features
|
188
198
|
* Ruby and Javascript snippets will use "([^"]*)" instead of "([^\"]*)"$/ (Aslak Hellesøy)
|
189
199
|
|
190
|
-
|
200
|
+
## [v0.7.0](https://github.com/cucumber/cucumber/compare/v0.7.0.beta.8...v0.7.0)
|
191
201
|
|
192
202
|
This release is an important milestone for Cucumber. A new parser (the gherkin gem) parses feature
|
193
203
|
files 50-100 times faster than with 0.6.x and previous releases. Make sure you read the upgrade
|
194
204
|
instructions! http://wiki.github.com/aslakhellesoy/cucumber/upgrading
|
195
205
|
|
196
|
-
|
206
|
+
## [v0.7.0.beta.8](https://github.com/cucumber/cucumber/compare/v0.7.0.beta.7...v0.7.0.beta.8)
|
197
207
|
|
198
|
-
|
208
|
+
### Bugfixes
|
199
209
|
* Inconsistent order of execution Background and Before in 0.7.0.beta.2 (#600 Mike Sassak)
|
200
210
|
* Make sure both lexing and parsing errors are captured and reported with line number (Gregory Hnatiuk)
|
201
211
|
|
202
|
-
|
212
|
+
## [v0.7.0.beta.7](https://github.com/cucumber/cucumber/compare/v0.7.0.beta.6...v0.7.0.beta.7)
|
203
213
|
|
204
|
-
|
214
|
+
### Bugfixes
|
205
215
|
* Depend on gherkin-1.0.22, which should now make things work on Windows and Ruby 1.8.x-1.9.x. (Aslak Hellesøy)
|
206
216
|
|
207
|
-
|
217
|
+
## [v0.7.0.beta.6](https://github.com/cucumber/cucumber/compare/v0.7.0.beta.5...v0.7.0.beta.6)
|
208
218
|
|
209
|
-
|
219
|
+
### Bugfixes
|
210
220
|
* Fixed a small regression with pystrings and calling steps from stepdefs, introduced in a previous beta. (Aslak Hellesøy)
|
211
221
|
|
212
|
-
|
222
|
+
## [v0.7.0.beta.5](https://github.com/cucumber/cucumber/compare/v0.7.0.beta.4...v0.7.0.beta.5)
|
213
223
|
|
214
|
-
|
224
|
+
### New Features
|
215
225
|
* Support RSpec 2. (RSpec >= 1.2.4 is still supported). (Aslak Hellesøy, Ryan Bigg)
|
216
226
|
|
217
|
-
|
227
|
+
### Removed features
|
218
228
|
* No more support for RSpec <= 1.2.3. (Aslak Hellesøy)
|
219
229
|
|
220
|
-
|
230
|
+
## [v0.7.0.beta.4](https://github.com/cucumber/cucumber/compare/v0.7.0.beta.3...v0.7.0.beta.4)
|
221
231
|
|
222
|
-
|
232
|
+
### New Features
|
223
233
|
* New, experimental V8 javascript support - step definitions in Javascript! (Joseph Wilk)
|
224
234
|
|
225
|
-
|
235
|
+
### Bugfixes
|
226
236
|
* Gherkin is loaded via rubygems if it can't be found on the $LOAD_PATH. (Aslak Hellesøy)
|
227
237
|
|
228
|
-
|
238
|
+
## [v0.7.0.beta.3](https://github.com/cucumber/cucumber/compare/v0.7.0.beta.2...v0.7.0.beta.3)
|
229
239
|
|
230
|
-
|
240
|
+
### Changed Features
|
231
241
|
* Step Definitions and calling steps from step definitions can again use And and But (was removed in 0.7.0.beta.2) (Aslak Hellesøy)
|
232
242
|
|
233
|
-
|
243
|
+
## [v0.7.0.beta.2](https://github.com/cucumber/cucumber/compare/v0.7.0.beta.1...v0.7.0.beta.2)
|
234
244
|
|
235
|
-
|
245
|
+
### New Features
|
236
246
|
* Depend on Gherkin 1.0.18, which has some bugfixes. (Aslak Hellesøy)
|
237
247
|
|
238
|
-
|
248
|
+
## [v0.7.0.beta.1](https://github.com/cucumber/cucumber/compare/v0.6.4...v0.7.0.beta.1)
|
239
249
|
|
240
250
|
Treetop is gone and replaced with Ragel. The new Ragel parser lives in the gherkin gem.
|
241
251
|
Parse times are up to 100 times faster.
|
242
252
|
|
243
|
-
|
253
|
+
### New Features
|
244
254
|
* Upgraded Sinatra example to use Sinatra 1.0 and Capybara. (Aslak Hellesøy)
|
245
255
|
|
246
|
-
|
256
|
+
### Changed Features
|
247
257
|
* New i18n translations now have to be contributed to the gherkin project.
|
248
258
|
|
249
|
-
|
259
|
+
## [v0.6.4](https://github.com/cucumber/cucumber/compare/v0.6.3...v0.6.4)
|
250
260
|
|
251
|
-
|
261
|
+
### Bugfixes
|
252
262
|
* Better handling of --guess with optional capture groups (Tim Felgentreff)
|
253
263
|
* Parsing of rerun.txt can't use Shellwords on Windows (#581 David Esposito)
|
254
|
-
*
|
264
|
+
* \#puts can now take non-String arguments just like Kernel#puts - #to_s is done implicitly. (Aslak Hellesøy)
|
255
265
|
* Attempt to fix Cucumber::CODEPAGE error again for Windows (#561 Aslak Hellesøy)
|
256
266
|
* Tab indentation causes multiline step arguments to fail (#585 Aslak Hellesøy)
|
257
267
|
* Properly pass tags over the wire protocol (Matt Wynne)
|
258
268
|
* Profile loading should honour the --strict option (#580 Rob Holland)
|
259
269
|
* Snippets are properly printed when using '*' as step keyword. (Used to cause infinite recursion). (Aslak Hellesøy)
|
260
270
|
|
261
|
-
|
271
|
+
### New features
|
262
272
|
* Added #puts_world method, printing the World class and all included modules (Ruby only). (Aslak Hellesøy)
|
263
273
|
* Added #puts to the PDF formatter (Nicolas Bessi)
|
264
274
|
* Show fails for After/Before hooks in the progress formatter (#584 Joseph Wilk)
|
265
275
|
|
266
|
-
|
276
|
+
### Changed features
|
267
277
|
* Switced to ISO 639-1 (language) and ISO 3166 alpha-2 (region - if applicable). Applies to Catalan,
|
268
278
|
Swedish, Welsh, Romanian and Serbian. (Aslak Hellesøy)
|
269
279
|
|
270
|
-
|
280
|
+
## [v0.6.3](https://github.com/cucumber/cucumber/compare/v0.6.2...v0.6.3)
|
271
281
|
|
272
|
-
|
282
|
+
### Bugfixes
|
273
283
|
* Split arguments in cucumber.yml with shellwords. Example: myprofile: --out="Features report.html" (Nathaniel Haas)
|
274
284
|
* Breakage in Rails 2-3-stable after html_safe is added to the repo. (#577 Aslak Hellesøy)
|
275
285
|
* uninitialized constant Cucumber::CODEPAGE (NameError) (#561 Aslak Hellesøy)
|
@@ -278,7 +288,7 @@ Parse times are up to 100 times faster.
|
|
278
288
|
* Fix various places in PDF formatter where HTML entities could break prawn (Matt Wynne)
|
279
289
|
* The rerun formatter outputs failed, pending and undefined scenarios (before: only failing) (Aslak Hellesøy)
|
280
290
|
|
281
|
-
|
291
|
+
### New features
|
282
292
|
* Added "Angenommen" as German synonym for Given (Sven Fuchs, Aslak Hellesøy)
|
283
293
|
* New #ask(question, timeout_seconds=60) method available to stepdefs. Asks for input and #puts-s question and answer. (Aslak Hellesøy)
|
284
294
|
* Links to step definitions are now clickable in TextMate's HTML report (Rob Aldred)
|
@@ -286,9 +296,9 @@ Parse times are up to 100 times faster.
|
|
286
296
|
* Add tags to begin/end scenario messages on wire protocol to support tagged hooks (#571 Matt Wynne)
|
287
297
|
* Default timeouts to 120s for invoke, begin_scenario and end_scenario messages in wire protocol (#572 Matt Wynne)
|
288
298
|
|
289
|
-
|
299
|
+
## [v0.6.2](https://github.com/cucumber/cucumber/compare/v0.6.1...v0.6.2)
|
290
300
|
|
291
|
-
|
301
|
+
### Bugfixes
|
292
302
|
* Update --help for --tags which was out of date. (Aslak Hellesøy)
|
293
303
|
* Explicitly use Prawn 0.6.3 for pdf formatter since 0.7.1 is broken (Aslak Hellesøy)
|
294
304
|
* PDF formatter renders tables incorrectly (#553 Andy Waite)
|
@@ -297,72 +307,72 @@ Parse times are up to 100 times faster.
|
|
297
307
|
* Added option to override output encoding on Windows with an CUCUMBER_OUTPUT_ENCODING env var (Aslak Hellesøy)
|
298
308
|
* PDF generation requires 'prawn-format' (#558 Aslak Hellesøy)
|
299
309
|
|
300
|
-
|
310
|
+
### New features
|
301
311
|
* Show profiles in error scenario summary. (#550 Joseph Wilk)
|
302
312
|
|
303
|
-
|
313
|
+
### Removed features
|
304
314
|
* element_at and table_at have been removed. Use tableish in cucumber-rails instead. (Aslak Hellesœy)
|
305
315
|
|
306
|
-
|
316
|
+
## [v0.6.1](https://github.com/cucumber/cucumber/compare/v0.6.0...v0.6.1)
|
307
317
|
|
308
|
-
|
318
|
+
### Bugfixes
|
309
319
|
* Fixed broken console handling on Windows/JRuby that was introduced in 0.6.0. (Aslak Hellesøy)
|
310
320
|
|
311
|
-
|
321
|
+
## [v0.6.0](https://github.com/cucumber/cucumber/compare/v0.5.3...v0.6.0)
|
312
322
|
|
313
323
|
Bumping to 0.6.0 for this release since we're breaking backwards compatibility with tags.
|
314
324
|
|
315
|
-
|
325
|
+
### Changed Features
|
316
326
|
* Tag boolean logic is inverted. What was ORed before is now ANDed and vice versa. (#504 Aslak Hellesøy)
|
317
327
|
This makes it more practical in most cases to mix tags from profiles and the command line
|
318
328
|
|
319
329
|
In previous versions the following command line:
|
320
330
|
|
321
|
-
|
331
|
+
`--tags @foo,~@bar --tags @zap (on the command line)`
|
322
332
|
|
323
333
|
or the following Hook:
|
324
334
|
|
325
|
-
|
335
|
+
`Before("@foo,~@bar", "@zap") (for Hooks)`
|
326
336
|
|
327
337
|
would be equivalent to the boolean expression: (@foo && !@bar) || @zap
|
328
338
|
Starting with this release it will be equivalent to: (@foo || !@bar) && @zap
|
329
339
|
|
330
|
-
|
340
|
+
### Bugfixes
|
331
341
|
* Cucumber not loading the correct settings using autospec (#496, #523 Aslak Hellesøy, Andrzej Śliwa)
|
332
342
|
* Ruby 1.9.2 fails to load features/support/env.rb (#549 Aslak Hellesøy)
|
333
343
|
* All features (except 4) pass on 1.9.2 (but not on 1.9.1) (Aslak Hellesøy)
|
334
344
|
* Add missing require statement in rerun formatter which broke RubyMine (Noah Sussman)
|
335
345
|
|
336
|
-
|
346
|
+
## [v0.5.3](https://github.com/cucumber/cucumber/compare/v0.5.2...v0.5.3)
|
337
347
|
|
338
348
|
Another small release today to please a sister project. This time Cuke4Nuke.
|
339
349
|
|
340
|
-
|
350
|
+
### New Features
|
341
351
|
* Simplified wire protocol to mostly use success / fail responses (Matt Wynne)
|
342
352
|
|
343
|
-
|
353
|
+
## [v0.5.2](https://github.com/cucumber/cucumber/compare/v0.5.1...v0.5.2)
|
344
354
|
|
345
|
-
|
355
|
+
### New Features
|
346
356
|
* On JRuby/Cuke4Duke, --require DIR will put DIR on the $CLASSPATH, making it easier to load step def classes (Aslak Hellesøy)
|
347
357
|
* New --jars option that will load jar files. Only available on JRuby. Practical for Cuke4Duke. (Aslak Hellesøy)
|
348
358
|
|
349
|
-
|
359
|
+
### Bugfixes
|
350
360
|
* Add #embed back to html formatter (#547 Brandon Faloona)
|
351
361
|
* Refactored wire protocol code and added configurable timeout to allow for long running step definitions. (#546 Matt Wynne)
|
352
362
|
|
353
|
-
|
363
|
+
## [v0.5.1](https://github.com/cucumber/cucumber/compare/v0.5.0...v0.5.1)
|
354
364
|
|
355
365
|
Small bugfix release.
|
356
366
|
|
357
|
-
|
367
|
+
### Bugfixes
|
358
368
|
* Replaced dependency on json gem with an error message, so that the cucumber gem installs on JRuby. (Aslak Hellesøy)
|
359
369
|
|
360
|
-
|
370
|
+
## [v0.5.0](https://github.com/cucumber/cucumber/compare/v0.4.4...v0.5.0)
|
361
371
|
|
362
372
|
We're bumping to 0.5.0 for this release since all of the Rails code has now moved to a new gem - cucumber-rails.
|
363
373
|
Please see History.txt in cucumber-rails for details about what's new on the Rails side.
|
364
374
|
|
365
|
-
|
375
|
+
### New features
|
366
376
|
* "Given" in Dutch is now aliased to "Gegeven" or "Stel". (Iain Hecker)
|
367
377
|
* New --i18n option to list keywords in various languages. (Aslak Hellesøy)
|
368
378
|
* Added a Tcl example using Sam Stephenson's ruby-tcl (Aslak Hellesøy)
|
@@ -370,11 +380,11 @@ Please see History.txt in cucumber-rails for details about what's new on the Rai
|
|
370
380
|
* The HTML formatter produces a much nicer report, with TextMate link integration. (Rob Aldred)
|
371
381
|
* Wire protocol now supports table arguments, step definition source & regexp, snippets, pending, table diffing (Matt Wynne)
|
372
382
|
|
373
|
-
|
383
|
+
### Changed Features
|
374
384
|
* Per-word trailing-space setting for step keywords using '<'. See 'fr' in languages.yml for example. (#525 Gregory Hnatiuk)
|
375
385
|
* Formatters will no longer be passed File objects. They must use ensure_io, ensure_file or ensure_dir. (Aslak Hellesøy)
|
376
386
|
|
377
|
-
|
387
|
+
### Bugfixes
|
378
388
|
* Exception messages are properly escaped in the HTML report. (Aslak Hellesøy)
|
379
389
|
* Improved UTF-8 support for Windows. (Aslak Hellesøy)
|
380
390
|
* Make #element_at / #table_at work on Webrat 0.6.0. This is now deprecated it in favour of #tableish from the cucumber-rails gem. (Aslak Hellesøy)
|
@@ -384,22 +394,22 @@ Please see History.txt in cucumber-rails for details about what's new on the Rai
|
|
384
394
|
* Regex escape the path when filtering the backtrace (Corey Donohoe & Simon Rozet)
|
385
395
|
* Add gem dependency on JSON gem, required by wire protocol (#533 Matt Wynne)
|
386
396
|
|
387
|
-
|
397
|
+
### Removed Features
|
388
398
|
* All Rails-related code is in a separate gem: cucumber-rails. Install that if you're working with Rails. (#483 Aslak Hellesøy)
|
389
399
|
* --language is removed: http://wiki.github.com/aslakhellesoy/cucumber/spoken-languages (Aslak Hellesøy)
|
390
400
|
|
391
|
-
|
401
|
+
## [v0.4.4](https://github.com/cucumber/cucumber/compare/v0.4.3...v0.4.4)
|
392
402
|
|
393
403
|
What a bad day to make a release, but here goes.
|
394
404
|
|
395
|
-
|
405
|
+
### New features
|
396
406
|
* Cucumber should use ActiveSupport::Callbacks for fixtures (#516 Adam Salter)
|
397
407
|
* Make 'I' optional in all webrat steps. (Gavin Hughes)
|
398
408
|
* Make generated cucumber.rake work with a vendored gem (Alex Rothenberg)
|
399
409
|
* Native support for ANSIColor on IronRuby via the iron-term-ansicolor gem (Will Green)
|
400
410
|
* Call a bunch of steps from step definitions - also with tables or pystrings. Copy-paste friendly (Bodaniel Jeanes, Jack Chen, Aslak Hellesøy)
|
401
411
|
|
402
|
-
|
412
|
+
### Bugfixes
|
403
413
|
* Pretty printer fails when expanding scenario outlines with -x when the background includes a table (#515 Mike Sassak)
|
404
414
|
* Ensure tags used with Before/After hooks always get parsed (#520 Joseph Wilk)
|
405
415
|
* Define IRONRUBY correctly on Ruby 1.9 (Joe Van Dyk)
|
@@ -407,13 +417,13 @@ What a bad day to make a release, but here goes.
|
|
407
417
|
* Avoid duplicate cucumber entries in database.yml (Daniel Hofstetter)
|
408
418
|
* Added respond_to? when checking config.cache_classes for older Rails versions (Jeremy Durham)
|
409
419
|
|
410
|
-
|
420
|
+
### Changed Features
|
411
421
|
* Rails support has been moved to the cucumber-rails gem (Dennis Blöte, Aslak Hellesøy) TODO - WIKI DOCUMENTATION BEFORE RELEASE
|
412
422
|
* The code for Czech has changed from cz to cs. (deepj)
|
413
423
|
* $cucumber_interrupted is now Cucumber.wants_to_quit - avoid global variable, which gives warnings. (Aslak Hellesøy)
|
414
424
|
* Examples keyword without a colon is deprecated loudly. Gherkin will not recognize it at all. (Gherkin #30 Mike Sassak)
|
415
425
|
|
416
|
-
|
426
|
+
## [v0.4.3](https://github.com/cucumber/cucumber/compare/v0.4.2...v0.4.3)
|
417
427
|
|
418
428
|
The exciting thing about this release is that the wire protocol is starting to take shape. This means you can
|
419
429
|
now use Cucumber with .NET - writing step definitions in C#. And this is without having to use IronRuby at all!
|
@@ -421,7 +431,7 @@ See Cuke4Nuke (http://wiki.github.com/richardlawrence/Cuke4Nuke) for more inform
|
|
421
431
|
|
422
432
|
As usual there are several small features and bug fixes.
|
423
433
|
|
424
|
-
|
434
|
+
### New Features
|
425
435
|
* Add support for ORing tags which are passed in with seperate --tag arguments. Make comma seperated tags use AND (#368 Joseph Wilk)
|
426
436
|
* New Wire Protocol - allowing out of process execution of Cucumber scenarios. (#428 Matt Wynne)
|
427
437
|
* Added an example illustrating how to get screenshots in HTML reports (examples/watir) (Aslak Hellesøy)
|
@@ -431,10 +441,10 @@ As usual there are several small features and bug fixes.
|
|
431
441
|
* Show scenario and step summary in HTML formatter (#285 Joseph Wilk)
|
432
442
|
* Ast::Table can now be constructed with an Array of Hash. (Aslak Hellesøy)
|
433
443
|
|
434
|
-
|
444
|
+
### Changed features
|
435
445
|
* The #puts method will no longer escape HTML if the html formatter is used. Escaping must be done manually. (Aslak Hellesøy)
|
436
446
|
|
437
|
-
|
447
|
+
### Bugfixes
|
438
448
|
* Fixed incorrect rendering of step arguments with UTF8 characters (Aslak Hellesøy)
|
439
449
|
* "--format rerun", with a Scenario Outline, kills cucumber (#492 Aslak Hellesøy)
|
440
450
|
* Usage formatter is not reporting time correctly. (Elliot Crosby-McCullough)
|
@@ -442,38 +452,38 @@ As usual there are several small features and bug fixes.
|
|
442
452
|
* Better Danish translation (Thorbjørn Ravn Andersen)
|
443
453
|
|
444
454
|
|
445
|
-
|
455
|
+
## [v0.4.2](https://github.com/cucumber/cucumber/compare/v0.4.1...v0.4.2)
|
446
456
|
|
447
457
|
Bugfix release. The 0.4.1 release was hosed when switching from Hoe to Jeweler.
|
448
458
|
|
449
|
-
|
459
|
+
## [v0.4.1](https://github.com/cucumber/cucumber/compare/v0.4.0...v0.4.1)
|
450
460
|
|
451
461
|
This is mostly a bugfix release. Some of Cucumber's own features have been fixed so they pass on more platforms,
|
452
462
|
making it easier for people to contribute. The README.txt also describes how to get up and running with the
|
453
463
|
development environment.
|
454
464
|
|
455
|
-
|
465
|
+
### Bugfixes
|
456
466
|
* Cucumber's features verified passing on MRI 1.8.6 (OSX), 1.8.7 (OSX), 1.9.1 (OSX/Win) and JRuby 1.4.0RC1 (OSX). (Aslak Hellesøy)
|
457
467
|
* Ensure no errors are raised when limiting with tags which are not in the feature set (#464 Joseph Wilk)
|
458
468
|
* Missing Romanian keywords added for Examples, Scenario Outline and Background (to my best google translate knowledge) (Aslak Hellesøy)
|
459
469
|
* Make rerun and --drb work together again after formatter API changes (#485 Erik Hansson, John Ferlito)
|
460
470
|
|
461
|
-
|
471
|
+
### New Features
|
462
472
|
* The Rails cucumber generator will only default to RSpec if installed. And print better help. (Aslak Hellesøy)
|
463
473
|
* Added 'but' variants to Japanese. (Kakutani Shintaro)
|
464
474
|
* README.txt explains people how to run all tests. Install gems with geminstaller. (Aslak Hellesøy)
|
465
475
|
* Added support for Serbian language, both Cyrillic and Latin with usage examples. (Dejan Dimic)
|
466
476
|
* Add new 'debug' formatter for debugging and visualising the calls to listeners. (Matt Wynne)
|
467
477
|
|
468
|
-
|
478
|
+
### Changed features
|
469
479
|
* Use http://github.com/aslakhellesoy/wac instead of http://github.com/aslakhellesoy/ansicolor on Windows/JRuby (#456 Aslak Hellesøy)
|
470
480
|
|
471
|
-
|
481
|
+
### Internal changes
|
472
482
|
* Ditched Hoe for Jeweler (Aslak Hellesøy)
|
473
483
|
* Added StepMother#invoke(step_name, multiline_argument=nil) - needed by cuke4duke ticket #26 (Aslak Hellesøy)
|
474
484
|
* StepDefinitionMethods is gone.
|
475
485
|
|
476
|
-
|
486
|
+
## [v0.4.0](https://github.com/cucumber/cucumber/compare/v0.3.104...v0.4.0)
|
477
487
|
|
478
488
|
The back to stable release. When we went from 0.3.11 to 0.3.90 we thought we were close to a 0.4.0 release. Then the community
|
479
489
|
went nuts and a lot of great contributions came in. Some of those broke backwards compatibility, and we decided it would be
|
@@ -484,7 +494,7 @@ Rails users: you *must* run script/generate cucumber after installing this versi
|
|
484
494
|
If something breaks for you, please please please read this file carefully. It's most likely something referenced here, and
|
485
495
|
that will give you more information so you can solve any problems. If not, just get in touch on IRC or the Google Group.
|
486
496
|
|
487
|
-
|
497
|
+
### New Features
|
488
498
|
* Total feature parsing time is shown when run with --verbose. Useful for benchmarking with future Ragel parser (Aslak Hellesøy)
|
489
499
|
* Tables yielded to step definitions are no longer frozen, so you can edit their data without #dup'ing (Aslak Hellesøy)
|
490
500
|
* Transform can now transform tables, using /table:col1,col2,col3/ (#478 Corey Haines)
|
@@ -497,14 +507,14 @@ that will give you more information so you can solve any problems. If not, just
|
|
497
507
|
* Stop the confusion between "homepage" and "home page" by allowing both (Ryan Bigg & Bodaniel Jeanes)
|
498
508
|
* Make script/cucumber file generated by the Rails cucumber generator look for cucumber in vendored gems as well. (Tom ten Thij)
|
499
509
|
|
500
|
-
|
510
|
+
### Changed Features
|
501
511
|
* Step tables now default empty table cells to empty strings and not nil (#470 Joseph Wilk)
|
502
512
|
|
503
|
-
|
513
|
+
### Removed Features
|
504
514
|
* The feature_list, feature_pattern, step_list and step_pattern properties are removed from the Rake task. Use profiles instead. (Aslak Hellesøy)
|
505
515
|
* The FeatureTask is removed. Use profiles instead.
|
506
516
|
|
507
|
-
|
517
|
+
### Bugfixes
|
508
518
|
* instance_exec get declared private (#477 Tim Galeckas)
|
509
519
|
* Transforms can return nil. (Thomas Marek)
|
510
520
|
* Generated rails rake tasks doesn't use the vendored version cucumber binary (#468 Josh Nichols)
|
@@ -520,55 +530,55 @@ that will give you more information so you can solve any problems. If not, just
|
|
520
530
|
* Better backtraces for Ruby 1.8.7. (Jakob Skov-Pedersen)
|
521
531
|
* String step definitions ( Given 'I have $number cucumbers' ) are escaped before being turned into regular expressions. (David Waite)
|
522
532
|
|
523
|
-
|
533
|
+
## [v0.3.104](https://github.com/cucumber/cucumber/compare/v0.3.103...v0.3.104)
|
524
534
|
|
525
535
|
This release has some minor changes to the command line and formatters. The biggest change is internally, paving
|
526
536
|
the way for more programming language support in Cuke4Duke, which now supports step definitions written in Java, Scala,
|
527
537
|
Groovy, Clojure and Javascript!
|
528
538
|
|
529
|
-
|
539
|
+
### New Features
|
530
540
|
* "usage" formatter should display progress (#437 Aslak Hellesøy)
|
531
541
|
* Added example for Ramaze. (Yutaka HARA)
|
532
542
|
|
533
|
-
|
543
|
+
### Bugfixes
|
534
544
|
* Fixed regression in profile formatter from 0.3.102. (Aslak Hellesøy)
|
535
545
|
* Raise a proper error message if someone forgets @ for tags, example: --tags ~foo or --tags bar. (Aslak Hellesøy)
|
536
546
|
* lib/cucumber/formatter/html.rb requires xml (#458 Brent Snook)
|
537
547
|
* lib/cucumber/formatter/html.rb requires ruby-debug (#455 Assaf Arkin)
|
538
548
|
* Allow for STDOUT formatters to be defined in profiles. Addresses an Autotest plugin issue. (#375 Gabriel Medina)
|
539
549
|
|
540
|
-
|
550
|
+
### Removed features
|
541
551
|
* The --dry-run option no longer implies --no-source and --no-snippets. It only implies --no-snippets. (Aslak Hellesøy)
|
542
552
|
|
543
|
-
|
553
|
+
### Changed features
|
544
554
|
* The profile and usage formatters have been combined to the usage formatter. Use it eith or without --dry-run. See --help for more. (Aslak Hellesøy)
|
545
555
|
* The steps formatter has been renamed to stepdefs formatter. (Aslak Hellesøy)
|
546
556
|
* The internal programming language API has changed, giving more power to the implementation. See #428. (Aslak Hellesøy)
|
547
557
|
|
548
|
-
|
558
|
+
## [v0.3.103](https://github.com/cucumber/cucumber/compare/v0.3.102...v0.3.103)
|
549
559
|
|
550
560
|
This release gives you back some of the control over the Rails environment that was accidentally taken away from you in the
|
551
561
|
previous release.
|
552
562
|
|
553
563
|
Using this release on a Rails project requires a rerun of script/generate cucumber.
|
554
564
|
|
555
|
-
|
565
|
+
### New Features
|
556
566
|
* Added a new @no-txn tag to selectively turn off transactions for a particlular scenario.
|
557
567
|
* Added back a way to globally turn off transactions.
|
558
568
|
* Renamed @allow_rescue tag to @allow-rescue.
|
559
569
|
|
560
|
-
|
570
|
+
### Bugfixes
|
561
571
|
* Gracefully handle cases when optional regexp groups are not matched. Ex: /should( not)? be flashed '([^']*?)'$/ (Aslak Hellesøy)
|
562
572
|
|
563
|
-
|
573
|
+
### Changed Features
|
564
574
|
* The Formatter API has completely changed. Formatters are no longer a double-dispacth visitor - just a single-dispatch listener (#438 Matt Wynne)
|
565
575
|
|
566
|
-
|
576
|
+
## [v0.3.102](https://github.com/cucumber/cucumber/compare/v0.3.101...v0.3.102)
|
567
577
|
|
568
578
|
This release has some changes in the Rails support, so make sure you run "script/generate cucumber" after you upgrade.
|
569
579
|
Other noteworthy new features are improved Hook, tags and Transform support, and as always - several smaller bug fixes.
|
570
580
|
|
571
|
-
|
581
|
+
### New Features
|
572
582
|
* Added new internal API for Regexp and groups, allowing other programming languages to leverage native regexps. (Aslak Hellesøy)
|
573
583
|
* New @allow_rescue tag for Rails scenarios. Causes exceptions raised in actions to be caught by rails and not bubble up to Cucumber (Aslak Hellesøy)
|
574
584
|
* Negative tags can now be used in hooks, just like the command line's --tags option: Before('~@yarr') - will run for all scenarios that *don't* have the @yarr tag. (Aslak Hellesøy)
|
@@ -576,7 +586,7 @@ Other noteworthy new features are improved Hook, tags and Transform support, and
|
|
576
586
|
* Other Transforms can be reused by calling Transform with a string inside of another Transform definition (Larry Diehl)
|
577
587
|
* Execute "After" hooks in reverse order of declaration for better behavior with dependent blocks and to mimic the behavior of at_exit (David Waite)
|
578
588
|
|
579
|
-
|
589
|
+
### Bugfixes
|
580
590
|
* features/support/env.rb runs commands twice (bugfix cuts total time by almost 50% w00t) (#452 Jim Meyer)
|
581
591
|
* Problems adding custom formatters to features/support. (features/support is added to $LOAD_PATH) (#449 Aslak Hellesøy)
|
582
592
|
* Some options set in cucumber.yml profiles are ignored (#446 Leonard CHIN)
|
@@ -584,19 +594,19 @@ Other noteworthy new features are improved Hook, tags and Transform support, and
|
|
584
594
|
* rspec-rails, :lib => false (#447 David Chelimsky)
|
585
595
|
* Cucumber with Spork breaks on OS X Snow Leopard (#431 David Chelimsky)
|
586
596
|
|
587
|
-
|
597
|
+
### Changed Features
|
588
598
|
* Tag names passed on the command line *always* have to use the @ sign. --tags foo or --tags ~bar won't work. Use --tags @foo or --tags ~@bar (Aslak Hellesøy)
|
589
599
|
|
590
|
-
|
600
|
+
### Removed features
|
591
601
|
* The Cucumber::Rails.bypass_rescue no longer exists. Errors will always bubble up, unless you use the new @allow_rescue tag. (Aslak Hellesøy)
|
592
602
|
* The Cucumber::Rails.use_transactional_fixtures no longer exists. Transactional fixtures are always enabled for the cucumber environment. (Aslak Hellesøy)
|
593
603
|
|
594
|
-
|
604
|
+
## [v0.3.101](https://github.com/cucumber/cucumber/compare/v0.3.100...v0.3.101)
|
595
605
|
|
596
606
|
Two exciting things in this release. Step Argument Transforms and a PDF formatter you can use to send
|
597
607
|
your features to your customer for review!
|
598
608
|
|
599
|
-
|
609
|
+
### New Features
|
600
610
|
* New pdf formatter (#425 Mads Buus)
|
601
611
|
* Step Argument Transforms: These let you use the Transform method to register regular expressions
|
602
612
|
to catch and transform/coerce arguments before they are yielded to step definitions:
|
@@ -604,56 +614,56 @@ your features to your customer for review!
|
|
604
614
|
* Adding webrat steps for asserting content does or does not exist within a particular element
|
605
615
|
(using webrat's within method) (Kieran Pilkington)
|
606
616
|
|
607
|
-
|
617
|
+
## [v0.3.100](https://github.com/cucumber/cucumber/compare/v0.3.99...v0.3.100)
|
608
618
|
|
609
619
|
The JavaZone release!
|
610
620
|
|
611
|
-
|
621
|
+
### New Features
|
612
622
|
* Added support for Uzbek (msarvar)
|
613
623
|
* The file argument on the cucumber command line will replace contents of file on cli if file is prefixed with @ (Tero Tilus)
|
614
624
|
|
615
|
-
|
625
|
+
### Bugfixes
|
616
626
|
* Backtraces on JRuby are handled in a cleaner way when the exception comes from Java (NativeException). (Aslak Hellesøy)
|
617
627
|
* When exceptions occur in a Before block the rest of the scenario is now skipped (#331 Matt Wynne)
|
618
628
|
|
619
|
-
|
629
|
+
## [v0.3.99](https://github.com/cucumber/cucumber/compare/v0.3.98...v0.3.99)
|
620
630
|
|
621
|
-
|
631
|
+
### New Features
|
622
632
|
* Support for Croatian (Bkrsta)
|
623
633
|
* Make #feature available from scenario so you can do: Before{|scenario| scenario.feature}. (Aslak Hellesøy)
|
624
634
|
* cucumber.yml parsing supports ERB syntax (#427 Gregory Hnatiuk)
|
625
635
|
* New AfterConfiguration hook added; a block can be specified that takes Cucumber::Cli::Configuration (#423 Brent Snook)
|
626
636
|
* Cucumber::Cli::Configuration#feature_dirs and #out_stream exposed as public attributes so that they may be used in AfterConfiguration hook (#423 Brent Snook)
|
627
637
|
|
628
|
-
|
638
|
+
## [v0.3.98](https://github.com/cucumber/cucumber/compare/v0.3.97...v0.3.98)
|
629
639
|
|
630
640
|
Just a small release to help Cuke4Duke, which will be presented at Agile2009
|
631
641
|
in 2 days.
|
632
642
|
|
633
|
-
|
643
|
+
### New Features
|
634
644
|
* Backtrace filtering now happens in StepInvocation class, meaning other languages (Cuke4Duke) can get backtraces stripped. (Aslak Hellesøy)
|
635
645
|
* Cucumber::Ast::Table#map_headers now allows for a block that will convert all the headers. See docs for details. (Ben Mabey)
|
636
646
|
|
637
|
-
|
647
|
+
## [v0.3.97](https://github.com/cucumber/cucumber/compare/v0.3.96...v0.3.97)
|
638
648
|
|
639
649
|
The AA-FTT release. Creating a release for the AA-FTT meeting in Chicago so that we can play
|
640
650
|
with the new language API and maybe knock out some better .NET support.
|
641
651
|
|
642
|
-
|
652
|
+
### Bugfixes
|
643
653
|
* Allow comments on examples sections underneath scenario outlines (#420 Mike Sassak)
|
644
654
|
* Table.map_headers! will fail with a decent error message when 0 or 2+ headers are matched. (Aslak Hellesøy)
|
645
655
|
* Fixed an issue with comments with preceding spaces after a background causing a parse error (#401 Joseph Wilk)
|
646
656
|
|
647
|
-
|
657
|
+
### New Features
|
648
658
|
* The public API is documented and there is a new :sdoc task to generate nice searchable API docs.
|
649
659
|
* Add :default => :cucumber when setting up Rake tasks for Cucumber in Rails (Aslak Hellesøy)
|
650
660
|
* New When /^I fill in "([^\"]*)" for "([^\"]*)"$/ Webrat step for Rails (Aslak Hellesøy)
|
651
661
|
|
652
|
-
|
662
|
+
### Changed Features
|
653
663
|
* Changed the Programming Language API to support languages without "bleed through" (e.g. rubypython can't invoke ruby objs) (Aslak Hellesøy)
|
654
664
|
* The Programming Language API manages hooks on the language level instead of on the step mother level (Aslak Hellesøy)
|
655
665
|
|
656
|
-
|
666
|
+
## [v0.3.96](https://github.com/cucumber/cucumber/compare/v0.3.95...v0.3.96)
|
657
667
|
|
658
668
|
This release doesn't have any significant new features or bug fixes, but there are big
|
659
669
|
internal changes. This release has a new API for plugging in other programming languages.
|
@@ -662,17 +672,17 @@ You can read more about that here: http://groups.google.com/group/cukes/browse_t
|
|
662
672
|
This might break other tools that are using Cucumber's internal APIs. For example Spork broke and had to
|
663
673
|
be patched. Please upgrade to Spork 0.5.9 if you are using Spork.
|
664
674
|
|
665
|
-
|
675
|
+
### New Features
|
666
676
|
* Ability to preload natural language in Spork's prefork. Rerun script/generate cucumber --spork to see how. (Aslak Hellesøy)
|
667
677
|
* Ability to control which DRb port is used via the --port flag or by setting CUCUMBER_DRB environment variable. (Chris Flipse)
|
668
678
|
* Upgrade Rails generator to use webrat 0.5.0. (Aslak Hellesøy)
|
669
679
|
* Upgrade Sinatra example to work with rack-test 0.4.1 and webrat 0.5.0. (Aslak Hellesøy)
|
670
680
|
|
671
|
-
|
681
|
+
### Changed Features
|
672
682
|
* --strict will cause an exit code 1 for missing and pending (used to be for missing only). (Mads Buus)
|
673
683
|
* junit formatter doesn't report pending steps unless --strict is used. (Mads Buus)
|
674
684
|
|
675
|
-
|
685
|
+
## [v0.3.95](https://github.com/cucumber/cucumber/compare/v0.3.94...v0.3.95)
|
676
686
|
|
677
687
|
This release improves Webrat support for table-like HTML markup. Now you can easily turn the HTML
|
678
688
|
elements table, dl, ol and ul elements into a 2D array. This is particularly useful for comparing
|
@@ -680,7 +690,7 @@ data in your HTML with a Cucumber table using Cucumber::Ast::Table#diff!
|
|
680
690
|
|
681
691
|
This release also fixes several bugs related to --drb (Spork) and profiles (cucumber.yml)
|
682
692
|
|
683
|
-
|
693
|
+
### Bug Fixes
|
684
694
|
* --guess will always prefer the longest regexp with no groups if they exist.
|
685
695
|
* Prevent delays if a NoMethodError is raise in a step definition. Define a light #inspect in World. (#374 Aslak Hellesøy)
|
686
696
|
* Restore 'features' as the default feature running path. (#412 Ben Mabey)
|
@@ -688,18 +698,18 @@ This release also fixes several bugs related to --drb (Spork) and profiles (cucu
|
|
688
698
|
* --language picked up from profiles again. (#409 Ben Mabey)
|
689
699
|
* Resolved infinite loop problem when --drb was defined in a profile. (#408 Ben Mabey)
|
690
700
|
|
691
|
-
|
701
|
+
### New Features
|
692
702
|
* Cucumber::World#table has been overloaded to work with 2D Array in addition to a table String to be parsed.
|
693
703
|
* New When /^I fill in the following:$/ step definition for Webrat. Useful for filling out a form with a Table. (Aslak Hellesøy)
|
694
704
|
* The object returned by element_at (Webrat::Element) has a #to_table that works for table, dl, ol and ul. (Aslak Hellesøy)
|
695
705
|
* An explanation of why failures are ok is printed when --wip is used. (Aslak Hellesøy)
|
696
706
|
* Added cucumber alias for cucumber:ok in Rails Rake tasks. (Aslak Hellesøy)
|
697
707
|
|
698
|
-
|
708
|
+
### Changed features
|
699
709
|
* element_at('table').to_table should be used instead of table_at('table').to_a. The old way is deprecated but still works. (Aslak Hellesøy)
|
700
710
|
* element_at (and the depracated table_at) no longer takes a DOM id, only CSS selectors. Change "my_id" to "#my_id". (Aslak Hellesøy)
|
701
711
|
|
702
|
-
|
712
|
+
## [v0.3.94](https://github.com/cucumber/cucumber/compare/v0.3.93...v0.3.94)
|
703
713
|
|
704
714
|
Kanban take II.
|
705
715
|
|
@@ -710,13 +720,13 @@ However, this feature went mostly unnoticed, and because we think it's so great
|
|
710
720
|
to make it the default for Rails projects. When you bootstrap your Rails project for Cucumber
|
711
721
|
you will now get 2 Cucumber Rake tasks for Kanban development:
|
712
722
|
|
713
|
-
|
714
|
-
|
723
|
+
cucumber:ok : Run features that should pass. This runs your "good,old" features
|
724
|
+
cucumber:wip : Run the features you're working on that don't pass yet. Tag them with @wip. Max 2!
|
715
725
|
|
716
726
|
So upgrade today and get into the habit of tagging new features with @wip (or invent your own tags).
|
717
727
|
You'll achieve better flow this way.
|
718
728
|
|
719
|
-
|
729
|
+
### New features
|
720
730
|
* Support limiting the number of feature elements with certain tags (#353 Joseph Wilk)
|
721
731
|
* script/generate cucumber sets up 'cucumber:ok' and 'cucumber:wip' tasks and deprecates 'features'. More Kanban love. (#344 Aslak Hellesøy)
|
722
732
|
* Better JUnit formatter: feature->testsuite, scenario->testcase. Better timing and support for background and scenario outline. (Mads Buus Westmark)
|
@@ -728,51 +738,51 @@ You'll achieve better flow this way.
|
|
728
738
|
* Document builtin formatters with --help. (#406 Aslak Hellesøy)
|
729
739
|
* Added support for using regular expressions when mapping table headers. (Peter Williams)
|
730
740
|
|
731
|
-
|
741
|
+
## [v0.3.93](https://github.com/cucumber/cucumber/compare/v0.3.92...v0.3.93)
|
732
742
|
|
733
743
|
Highlights in this release: Improved profile handling (cucumber.yml) and a fix for cucumber hanging.
|
734
744
|
|
735
|
-
|
745
|
+
### New features
|
736
746
|
* script/generate cucumber --spork now sets up a spork gem dependency in the cucumber.rb environment. (Aslak Hellesøy)
|
737
747
|
* Feature files defined on the command line override any that are present in profiles. (#344 Ben Mabey)
|
738
748
|
* Default (STDOUT) formatter defined in profile can be overridden from the command line. (#344 Ben Mabey)
|
739
749
|
* Displays which profile, if any, is being used. (Ben Mabey)
|
740
750
|
* click_link_within(parent, link) webrat step (Joakim Kolsjö)
|
741
751
|
|
742
|
-
|
752
|
+
### Bugfixes
|
743
753
|
* script/cucumber correctly loads the gem's binary if the plugin isn't installed.
|
744
754
|
* Cucumber hangs waiting for Ctrl+C if an Error is raised. (#374 Aslak Hellesøy)
|
745
755
|
|
746
|
-
|
756
|
+
## [v0.3.92](https://github.com/cucumber/cucumber/compare/v0.3.91...v0.3.92)
|
747
757
|
|
748
758
|
This release has some minor improvements to the new Table.diff! functionality. For example,
|
749
759
|
if you're using Webrat and you want to compare a feature table with a HTML table containing
|
750
760
|
links in one of the columns, you can do:
|
751
761
|
|
752
|
-
|
753
|
-
|
754
|
-
|
762
|
+
actual = Cucumber::Ast::Table.new(table_at('table').to_a)
|
763
|
+
actual.map_column!('Name') { |text| text.strip.match(/>(.*)</)[1] }
|
764
|
+
table.diff!(actual)
|
755
765
|
|
756
|
-
|
766
|
+
### New features
|
757
767
|
* Allow Step Definitions to accept mix of required & optional args (Niels Ganser)
|
758
768
|
* table_a.diff!(table_b) now uses column conversions from both tables (Table#map_column!) (Aslak Hellesøy)
|
759
769
|
|
760
|
-
|
770
|
+
### Bugfixes
|
761
771
|
* Upgrade Sinatra example to work with rack-test 0.3.0 and aslakhellesoy-webrat 0.4.4.1 (Aslak Hellesøy)
|
762
772
|
* require 'cucumber/webrat/table_locator' added to Spork environment for Rails (Anders Furseth)
|
763
773
|
|
764
|
-
|
774
|
+
### Changed Features
|
765
775
|
* The 'default' profile is now ALWAYS used unless you specify another profile or use the -P or --no-profile flag. (#344 Ben Mabey)
|
766
776
|
|
767
|
-
|
777
|
+
## [v0.3.91](https://github.com/cucumber/cucumber/compare/v0.3.90...v0.3.91)
|
768
778
|
|
769
|
-
|
779
|
+
### New Features
|
770
780
|
* CTRL-C will exit immediately instead of carrying on until all features are run. (Aslak Hellesøy)
|
771
781
|
* Run can be stopped programmatically by setting $cucumber_interrupted = true, for example in an After block. (Aslak Hellesøy)
|
772
782
|
* Support limiting the number of feature elements with certain tags (#353 Joseph Wilk)
|
773
783
|
* Table support for cuke4duke
|
774
784
|
|
775
|
-
|
785
|
+
## [v0.3.90](https://github.com/cucumber/cucumber/compare/v0.3.11...v0.3.90)
|
776
786
|
|
777
787
|
The Hot summer release
|
778
788
|
|
@@ -780,22 +790,22 @@ This is a hot summer in Norway, and Cucumbers are growing in abundance. To celeb
|
|
780
790
|
a new release with lots of new features and bugfixes. This is also one of the last releases in the 0.3 series
|
781
791
|
(hence the 0.3.90 number), so 0.4 (or maybe 1.0!) will be coming up soon. The highlights of this release are:
|
782
792
|
|
783
|
-
|
793
|
+
### Egality
|
784
794
|
|
785
795
|
English is not the world's most spoken language, so why should Cucumber force non-English speakers to use the
|
786
796
|
--language flag? As of this release you're no longer forced to do that. Instead, you can add a comment header
|
787
797
|
to your .feature files:
|
788
798
|
|
789
|
-
|
790
|
-
|
791
|
-
|
799
|
+
# language: fr
|
800
|
+
# Cucumber understands that this is French
|
801
|
+
Fonctionnalité: Trou de boulette
|
792
802
|
|
793
803
|
If you don't have that header, Cucumber will work as before - using whatever you specified with --language,
|
794
804
|
or default to English if no --language option was specified. A nice side effect of this is that you can now
|
795
805
|
have features in several languages side by side and run them in the same cucumber. (Not recommended unless
|
796
806
|
you want to take polyglot programming to an extreme level).
|
797
807
|
|
798
|
-
|
808
|
+
### Table diffing (experimental)
|
799
809
|
|
800
810
|
When you pass a table as an argument to your Then steps you often want to compare that table
|
801
811
|
to some actual values. In previous releases you had to iterate over the table's values and manually
|
@@ -810,41 +820,41 @@ plain text step), Cucumber will print the difference for each of the row or colu
|
|
810
820
|
The Table#diff! method expects an Array of Array, Array of Hash (similar to what you'd get from table#hashes)
|
811
821
|
or simply another Ast::Table object. Here is a simple example:
|
812
822
|
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
823
|
+
Then /^I should see the following cukes:$/ do |expected_cukes_table|
|
824
|
+
actual_table = ... # For example [['Latin', 'English'], ['Cucumis sativus', 'Cucumber'], ['Cucumis anguria', 'Burr Gherkin']]
|
825
|
+
expected_cukes_table.diff!(actual_table)
|
826
|
+
end
|
817
827
|
|
818
828
|
As an extra bonus we provide Webrat users with a new #table_at(selector) method that you can use to transform
|
819
829
|
an HTML table into an Array of Array, so that you can easily compare the contents of your HTML table to
|
820
830
|
expected data passed to a step. Here is an example:
|
821
831
|
|
822
|
-
|
823
|
-
|
824
|
-
|
832
|
+
Then /^I should see the following cukes:$/ do |expected_cukes_table|
|
833
|
+
expected_cukes_table.diff!(table_at('#cuke_table').to_a)
|
834
|
+
end
|
825
835
|
|
826
836
|
You can do the same trick to compare data from a Rails ActiveRecord table (although this is not a
|
827
837
|
recommended practice - your Then steps should compare against what users *see*, not what's in the
|
828
838
|
database):
|
829
839
|
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
840
|
+
# This requires that you use the column names in the header of the plain text expected table
|
841
|
+
Then /^I should have the following cukes in the database:$/ do |expected_cukes_table|
|
842
|
+
expected_cukes_table.diff!(Cuke.find(:all).map(&attributes))
|
843
|
+
end
|
834
844
|
|
835
|
-
|
845
|
+
### Environment variables
|
836
846
|
|
837
847
|
Another useful new feature is the ability to define environment variables on Cucumber's command line (just
|
838
848
|
like you can with Rake). Example:
|
839
849
|
|
840
|
-
|
850
|
+
cucumber FOO=BAR --format progress features
|
841
851
|
|
842
852
|
You can now pick up ENV['FOO'] in ruby (for example in env.rb) and take actions according to the value,
|
843
853
|
for example enabling your super hack that validates all HTTP responses for XHTML validity.
|
844
854
|
|
845
855
|
This release also has several bugfixes related to --format and Before/After hooks.
|
846
856
|
|
847
|
-
|
857
|
+
### Bugfixes
|
848
858
|
* Fix some misspellings which affect test fail for Korean example (#373 Dongju Kim)
|
849
859
|
* Make it possible to write non-localized step definitions (#377 Aslak Hellesøy)
|
850
860
|
* Table cells containing unicode are rendered incorrectly (#386 Stefan Kanev)
|
@@ -858,7 +868,7 @@ This release also has several bugfixes related to --format and Before/After hook
|
|
858
868
|
* Make sure script/generate cucumber --spork uses the cucumber Rails environment (Philippe Lafoucrière)
|
859
869
|
* Fixed bug with rake task raising errors with feature files with spaces (#380 Joseph Wilk)
|
860
870
|
|
861
|
-
|
871
|
+
### New Features
|
862
872
|
* I should see should support regexes (#382 John Ferlito)
|
863
873
|
* Access to scenario outline name from After hook scenario parameter (#342 Aslak Hellesøy)
|
864
874
|
* Allow multiple --tags switches to be passed
|
@@ -868,21 +878,21 @@ This release also has several bugfixes related to --format and Before/After hook
|
|
868
878
|
* Support specifying environment variables using foo=bar syntax on command line or in profiles (#362 Bryan Helmkamp)
|
869
879
|
* Display failing scenarios at the end of pretty format to make it easier for people to play them back (#360 Ryan Bigg)
|
870
880
|
|
871
|
-
|
881
|
+
### Changed Features
|
872
882
|
* When using --tags, positive tags are &&'ed while negative tags are ||'ed (John Wilger)
|
873
883
|
* The data returned from Table#hashes and similar methods are frozen. Dup if you need to modify. (Aslak Hellesøy)
|
874
884
|
* Visitor.visit_table_cell_value(value, col_width, status) is now visitor.visit_table_cell_value(value, status)
|
875
885
|
|
876
|
-
|
886
|
+
## [v0.3.11](https://github.com/cucumber/cucumber/compare/v0.3.10...v0.3.11)
|
877
887
|
|
878
888
|
This release just fixes a tiny bug in the formatter to fix an incompatibility
|
879
889
|
with the latest RedMine release. It should have been included in 0.3.10, but
|
880
890
|
was forgotten.
|
881
891
|
|
882
|
-
|
892
|
+
### Bugfixes
|
883
893
|
* Formatter API was broken in 0.3.9 (Roman Chernyatchik)
|
884
894
|
|
885
|
-
|
895
|
+
## [v0.3.10](https://github.com/cucumber/cucumber/compare/v0.3.9...v0.3.10)
|
886
896
|
|
887
897
|
The Spork Release!
|
888
898
|
|
@@ -910,87 +920,87 @@ needs to write such a server. ;)
|
|
910
920
|
|
911
921
|
This release also has some minor bugfixes related to RSpec and Rails interop.
|
912
922
|
|
913
|
-
|
923
|
+
### Bugfixes
|
914
924
|
* RSpec's be_* matchers did not work in 0.3.9 and probably earlier versions. Now they do. (Aslak Hellesøy)
|
915
925
|
* The Rails cucumber environment won't declare gem dependencies if the plugin exists. (Aslak Hellesøy)
|
916
926
|
* The Rails cucumber generator will no longer declare gem dependencies on rspec if you use --testunit. (Aslak Hellesøy)
|
917
927
|
|
918
|
-
|
928
|
+
### New features
|
919
929
|
* Spork support via --drb. (Ben Mabey)
|
920
930
|
* Added a Ast::Feature#name method for convenience. (Aslak Hellesøy)
|
921
931
|
|
922
|
-
|
932
|
+
### Changed features
|
923
933
|
* The HTML formatter wraps examples in a div, and distinguishes between Scenario and Scenario Outline. (Aslak Hellesøy)
|
924
934
|
|
925
|
-
|
935
|
+
## [v0.3.9](https://github.com/cucumber/cucumber/compare/v0.3.8...v0.3.9)
|
926
936
|
|
927
937
|
Bugfix release for 0.3.8 released earlier today. 0.3.8 had a bug in the Rails cucumber
|
928
938
|
generator which is fixed in 0.3.9.
|
929
939
|
|
930
|
-
|
940
|
+
### Bugfixes
|
931
941
|
* Fix broken Rails cucumber generator (Tim Glen)
|
932
942
|
* The Cucumber Rake task in non-fork mode will properly cause Rake to exit with 1 when Cucumber fails. (Aslak Hellesøy)
|
933
943
|
|
934
|
-
|
944
|
+
## [v0.3.8](https://github.com/cucumber/cucumber/compare/v0.3.7...v0.3.8)
|
935
945
|
|
936
946
|
This Cucumber version fixes several bugs related to Ruby on Rails and RSpec. If you
|
937
947
|
use Cucumber with a Rails app we *strongly* recommend you bootstrap Cucumber again:
|
938
948
|
|
939
|
-
|
949
|
+
ruby script/generate cucumber
|
940
950
|
|
941
|
-
|
951
|
+
### New Features
|
942
952
|
* Rails cucumber generator sets up default gem dependencies in cucumber environment.
|
943
953
|
* The duration of a run is reported by formatters - same format as the Linux time command (#228 Aslak Hellesøy)
|
944
954
|
* Scenario and ExampleRow objects (passed to Before and After hooks) have #name and #line methods (#316 Aslak Hellesøy)
|
945
955
|
* Rails generator creates a cucumber environment file to avoid potential cache_classes conflicts in test.rb (#165, Ben Mabey)
|
946
956
|
* HTML formatter renders @tags (but the CSS is still ugly)
|
947
957
|
|
948
|
-
|
958
|
+
### Removed/changed features
|
949
959
|
* The Cucumber Rake task will again fork by default (as 0.3.3 and earlier). Forking must be turned off explicitly. (Aslak Hellesøy)
|
950
960
|
|
951
|
-
|
961
|
+
### Bugfixes
|
952
962
|
* Better coexistence with RSpec - Cucumber now *neuters* the part of RSpec that tries to parse ARGV.
|
953
963
|
* The differ= exception is gone (#325, #340 Aslak Hellesøy)
|
954
964
|
|
955
|
-
|
965
|
+
## [v0.3.7](https://github.com/cucumber/cucumber/compare/v0.3.6...v0.3.7)
|
956
966
|
|
957
967
|
This is the "Help JetBrains RubyMine" release!
|
958
968
|
|
959
|
-
|
969
|
+
### New Features
|
960
970
|
* Added new Given alias for Catalan: Donat|Donada (Lleïr Borràs Metje)
|
961
971
|
* New --expand option. This will print Scenario Outlines once for each Example row - with values expanded. (#327 Aslak Hellesøy)
|
962
972
|
* You can override the formatter in Rails-generated rake tasks with the CUCUMBER_FORMAT environment variable (#335 Aslak Hellesøy)
|
963
973
|
|
964
|
-
|
974
|
+
### Bugfixes
|
965
975
|
* 'specs' folder needs to be renamed back to 'spec' (#339 Aslak Hellesøy)
|
966
976
|
* CUCUMBER_OPTS doesn't work for cucumber rake tasks (#336 Aslak Hellesøy)
|
967
977
|
|
968
|
-
|
978
|
+
## [v0.3.6](https://github.com/cucumber/cucumber/compare/v0.3.5...v0.3.6)
|
969
979
|
|
970
980
|
Kanban! With this release you can tag features or scenarios that are work in progress
|
971
981
|
with a tag and use the new --wip switch.
|
972
982
|
|
973
983
|
Another handy feature in this release is that you can package your own formatters in RubyGems.
|
974
984
|
|
975
|
-
|
985
|
+
### New features
|
976
986
|
* New --wip switch. See http://www.jroller.com/perryn/entry/bdd_on_a_multi_disciplined (Perryn Fowler)
|
977
987
|
* Added a AfterStep hook (Luke Melia)
|
978
988
|
* New aliases for Vietnamese (Ngoc Dao)
|
979
989
|
* Automatic require of custom formatters. --require is no longer needed to load them, and they can be in Ruby gems. (Aslak Hellesøy)
|
980
990
|
* Lazy loading of built-in formatters. Should improve startup time a little bit.
|
981
991
|
|
982
|
-
|
992
|
+
### Bugfixes
|
983
993
|
* Gracefully handle exceptions in After block (#330 Matt Wynne)
|
984
994
|
* Feature with only Background doesn't run hooks (#314, #329 Aslak Hellesøy)
|
985
995
|
|
986
|
-
|
996
|
+
## [v0.3.5](https://github.com/cucumber/cucumber/compare/v0.3.4...v0.3.5)
|
987
997
|
|
988
998
|
Let's make a new release today because two annoying bugs are fixed.
|
989
999
|
|
990
|
-
|
1000
|
+
### Bugfixes
|
991
1001
|
* Allow feature element names to contain Gherkin keywords as long as they are not the first word on a newline (#319, #307 Joseph Wilk)
|
992
1002
|
|
993
|
-
|
1003
|
+
## [v0.3.4](https://github.com/cucumber/cucumber/compare/v0.3.3...v0.3.4)
|
994
1004
|
|
995
1005
|
A couple of great new features in this release. Running with Rake is faster than before,
|
996
1006
|
and there is a brand new JUnit formatter - great for Continuous Integration reports!
|
@@ -1003,30 +1013,30 @@ Running Cucumber features in the same Ruby interpreter as Rake doesn't seem to w
|
|
1003
1013
|
so you have to explicitly tell the task to fork (like it was doing by default in prior
|
1004
1014
|
versions). In lib/tasks/cucumber.rake:
|
1005
1015
|
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1016
|
+
Cucumber::Rake::Task.new(:features) do |t|
|
1017
|
+
t.fork = true # Explicitly fork
|
1018
|
+
t.cucumber_opts = %w{--format pretty}
|
1019
|
+
end
|
1010
1020
|
|
1011
1021
|
(If you run script/generate cucumber this will be done for you).
|
1012
1022
|
Alternatively you can omit forking and run features like this:
|
1013
1023
|
|
1014
|
-
|
1024
|
+
RAILS_ENV=test rake cucumber
|
1015
1025
|
|
1016
1026
|
However, setting the RAILS_ENV is easy to forget, so I don't recommend relying on this.
|
1017
1027
|
|
1018
|
-
|
1028
|
+
### Bugfixes
|
1019
1029
|
* Hooks (World, Before, After) are no longer executed when --dry-run (Aslak Hellesøy)
|
1020
1030
|
* Proper UTF8 use in HTML formatter (Herminio Torres)
|
1021
1031
|
* Problem with multiple terms in languages.yml (#321 Aslak Hellesøy)
|
1022
1032
|
|
1023
|
-
|
1033
|
+
### New features
|
1024
1034
|
* New JUnit formatter (Gareth Jones)
|
1025
1035
|
* Support for Vietnamese (Ngoc Dao)
|
1026
1036
|
* Added aliases for Feature and But in Japanese (Leonard Chin)
|
1027
1037
|
* Support for Catalan (Francesc Esplugas)
|
1028
1038
|
|
1029
|
-
|
1039
|
+
### Changed features
|
1030
1040
|
* --exclude flag now works on ruby files in addition to feature files (#312 Ben Mabey)
|
1031
1041
|
* The Java example under examples/java uses Ant instead of Rake - and the new JUnit formatter.
|
1032
1042
|
* Rake task should not shell out (#297 Aslak Hellesøy)
|
@@ -1034,47 +1044,47 @@ However, setting the RAILS_ENV is easy to forget, so I don't recommend relying o
|
|
1034
1044
|
unless explicitly told to fork a new interpreter. This is to increase speed. You can
|
1035
1045
|
force a new interpreter by setting fork=true or rcov=true in the task.
|
1036
1046
|
|
1037
|
-
|
1047
|
+
## [v0.3.3](https://github.com/cucumber/cucumber/compare/v0.3.2...v0.3.3)
|
1038
1048
|
|
1039
1049
|
Minor bugfix release, made specially for EuRuKo!
|
1040
1050
|
|
1041
|
-
|
1051
|
+
### Bugfixes
|
1042
1052
|
* Summaries are no longer printed in an empty () if there are no scenarios/steps (Aslak Hellesøy)
|
1043
1053
|
* Background, Scenario Outline, Before Hook interaction (#309 Aslak Hellesøy)
|
1044
1054
|
* Multiline String snippets no longer give misleading info. It's a String, not a PyString that's sent to step def.
|
1045
1055
|
|
1046
|
-
|
1056
|
+
### Removed/changed features
|
1047
1057
|
* New aliases: --no-source/-s, --name/-n (#317 Lonnon Foster)
|
1048
1058
|
|
1049
|
-
|
1059
|
+
## [v0.3.2](https://github.com/cucumber/cucumber/compare/v0.3.1...v0.3.2)
|
1050
1060
|
|
1051
1061
|
This release has some minor bug fixes and new features.
|
1052
1062
|
Nothing major, but we need a release for RailsConf'09 in Las Vegas!
|
1053
1063
|
|
1054
|
-
|
1064
|
+
### Bugfixes
|
1055
1065
|
* rake tasks with profiles not respecting --require flags (#311 Ben Mabey)
|
1056
1066
|
* Step table with blank cell fails (#308 JohnnyT)
|
1057
1067
|
* Fixed error where unused table cells in Examples where raising exceptions due to having no status (#302 Joseph Wilk)
|
1058
1068
|
|
1059
|
-
|
1069
|
+
### New features
|
1060
1070
|
* Support for Hebrew (Ido Kanner)
|
1061
1071
|
* Summary should report scenarios (#32 Aslak Hellesøy)
|
1062
1072
|
* Examples and the associated tables are indented one level deeper than Scenario Outline. (Aslak Hellesøy)
|
1063
1073
|
* Added support for Examples selection when using --name. (#295 Joseph Wilk)
|
1064
1074
|
|
1065
|
-
|
1075
|
+
## [v0.3.1](https://github.com/cucumber/cucumber/compare/v0.3.0...v0.3.1)
|
1066
1076
|
|
1067
1077
|
This release has several minor bug fixes and new features. With the addition of Latvian and Hungarian Cucumber
|
1068
1078
|
now supports 32(!!) languages.
|
1069
1079
|
|
1070
|
-
|
1080
|
+
### New features
|
1071
1081
|
* Support multiline names for Scenarios, Scenario Outlines, Backgrounds, Examples (#231 Joseph Wilk)
|
1072
1082
|
* Added #headers to Cucumber::Ast::Table (Ben Mabey)
|
1073
1083
|
* New translation for Latvian (Vitauts Stočka)
|
1074
1084
|
* New translation for Hungarian (#287 Bence Golda)
|
1075
1085
|
* Pick up failure on after hook (#272 Aslak Hellesøy)
|
1076
1086
|
|
1077
|
-
|
1087
|
+
### Bugfixes
|
1078
1088
|
* Pretty formatter not colouring Examples tables correctly (#304 Aslak Hellesøy)
|
1079
1089
|
* Problem using --scenario and Scenario Outline (#298 Aslak Hellesøy)
|
1080
1090
|
* Tag Hook gets executed always there is a background (#301 Aslak Hellesøy)
|
@@ -1084,10 +1094,10 @@ now supports 32(!!) languages.
|
|
1084
1094
|
* Fixed incorrect colours in pretty formatter's table headers for outline tables (Aslak Hellesøy)
|
1085
1095
|
* Exceptions from steps called within hooks are now reraised. (#294 Ben Mabey)
|
1086
1096
|
|
1087
|
-
|
1097
|
+
### Removed/changed features
|
1088
1098
|
* --scenario handle has been removed and replaced with --name which supports partial matches, regexp special characters, running named backgrounds (#295 Joseph Wilk)
|
1089
1099
|
|
1090
|
-
|
1100
|
+
## [v0.3.0](https://github.com/cucumber/cucumber/compare/v0.2.3...v0.3.0)
|
1091
1101
|
|
1092
1102
|
This release has some minor changes to the APIs, but big enough that a new major release is in order.
|
1093
1103
|
The biggest change is the new semantics of the #World method. Previously you would call this method
|
@@ -1110,7 +1120,7 @@ Cucumber::Rake::Task. These accessors will be completely removed in version 0.4.
|
|
1110
1120
|
please rely on cucumber profiles in your rake tasks:
|
1111
1121
|
http://wiki.github.com/aslakhellesoy/cucumber/using-rake#profiles
|
1112
1122
|
|
1113
|
-
|
1123
|
+
### New features
|
1114
1124
|
* Use Hooks with @tags (#229 Aslak Hellesøy)
|
1115
1125
|
* Rake task supports cucumber.yml profiles (#187 Ben Mabey)
|
1116
1126
|
* Field value steps for Webrat (Jack Chen)
|
@@ -1124,7 +1134,7 @@ http://wiki.github.com/aslakhellesoy/cucumber/using-rake#profiles
|
|
1124
1134
|
* Snippets for steps that use Step Tables or PyStrings include block param and object type hint comment (#247 Joseph Wilk)
|
1125
1135
|
* Support description string for Backgrounds (#271 Joseph Wilk)
|
1126
1136
|
|
1127
|
-
|
1137
|
+
### Bugfixes
|
1128
1138
|
* After methods not being executed when Background fails (#288 Luismi Cavallé)
|
1129
1139
|
* Fixed dependency on internal files in rspec breaks cucumber w/ rspec-1.2.4 (#291 Aslak Hellesøy)
|
1130
1140
|
* Fix color use when using autotest on Linux. (Hans de Graaff)
|
@@ -1135,19 +1145,19 @@ http://wiki.github.com/aslakhellesoy/cucumber/using-rake#profiles
|
|
1135
1145
|
* Fixed Autospec failing with cucumber 0.2 (#254 Aslak Hellesøy)
|
1136
1146
|
* Sibling file detecting not working (#278 Aslak Hellesøy)
|
1137
1147
|
|
1138
|
-
|
1148
|
+
### Removed/changed features
|
1139
1149
|
* The visitor API has changed slightly:
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1150
|
+
* \#visit_step_name, #visit_multiline_arg and \#visit_exception are no longer official API methods.
|
1151
|
+
* \#visit_step_result replaces those 3 methods.
|
1152
|
+
* Table and PyString no longer hold status information. Each visitor subclass should store state in @state if needed.
|
1153
|
+
* \#visit_py_string no longer takes a status argument.
|
1144
1154
|
|
1145
|
-
|
1155
|
+
## [v0.2.3](https://github.com/cucumber/cucumber/compare/v0.2.2...v0.2.3)
|
1146
1156
|
|
1147
1157
|
This release sports 4 updated languages, slightly better help with snippets if you "quote" arguments
|
1148
1158
|
in your steps. Windows/JRuby users can enjoy colours and you get some more sugar with Tables.
|
1149
1159
|
|
1150
|
-
|
1160
|
+
### New features
|
1151
1161
|
* Added new Then /^I should be on (.+)$/ do |page_name| step (Grant Hollingworth)
|
1152
1162
|
* Use skipped_param color for examples table header (#266 Eugene Naydanov)
|
1153
1163
|
* Added new Cucumber::Ast::Table#rows_hash method (Torbjørn Vatn)
|
@@ -1158,11 +1168,11 @@ in your steps. Windows/JRuby users can enjoy colours and you get some more sugar
|
|
1158
1168
|
* Updated translation for Italian (Alessandro Baroni)
|
1159
1169
|
* Updated translation for Japanese (KAKUTANI Shintaro)
|
1160
1170
|
|
1161
|
-
|
1171
|
+
### Bugfixes
|
1162
1172
|
* Fixed step name after step keyword without space (#265 Aslak Hellesøy)
|
1163
1173
|
* Backtrace is back in HTML reports (Aslak Hellesøy)
|
1164
1174
|
|
1165
|
-
|
1175
|
+
## [v0.2.2](https://github.com/cucumber/cucumber/compare/v0.2.1...v0.2.2)
|
1166
1176
|
|
1167
1177
|
This release includes some minor changes to make Cucumber work with pure Java. Cucumber
|
1168
1178
|
has already worked with Java for a while (using JRuby and step definitions in Ruby),
|
@@ -1171,26 +1181,26 @@ but now you can write step definitions in pure Java!
|
|
1171
1181
|
Check out the Cucumber Java project for more details:
|
1172
1182
|
http://github.com/aslakhellesoy/cucumber_java/tree/master
|
1173
1183
|
|
1174
|
-
|
1184
|
+
## [v0.2.1](https://github.com/cucumber/cucumber/compare/v0.2.0...v0.2.1)
|
1175
1185
|
|
1176
1186
|
This release fixes a few minor bugs and adds a couple of new features.
|
1177
1187
|
|
1178
|
-
|
1188
|
+
### Bugfixes
|
1179
1189
|
* Fixed Cucumber, and rails controller error handling (#49 Matt Patterson)
|
1180
1190
|
* HTML Formatter doesn't work correctly with scenario Outlines. (#260 Aslak Hellesøy)
|
1181
1191
|
* After blocks are run in reverse order of registration. (#113 Aslak Hellesøy)
|
1182
1192
|
* Snippets are showing 'Ands' (#249 Aslak Hellesøy)
|
1183
1193
|
|
1184
|
-
|
1194
|
+
### New features
|
1185
1195
|
* Snippets use a regexp and block arguments if the step name has "quoted" arguments. (Aslak Hellesøy)
|
1186
1196
|
* Cucumber::Ast::Feature#to_sexp includes the file name. (Aslak Hellesøy)
|
1187
1197
|
* support/env.rb is not loaded when --dry-run is specified. This is to increase performance. (Aslak Hellesøy)
|
1188
1198
|
* New usage formatter. This is the foundation for editor autocompletion and navigation between steps and step definitions. (#209 Aslak Hellesøy)
|
1189
1199
|
|
1190
|
-
|
1200
|
+
### Removed features
|
1191
1201
|
* -S/--step-definitions option introduced in 0.2.0 is removed. Use --format usage [--dry-run] [--no-color].
|
1192
1202
|
|
1193
|
-
|
1203
|
+
## [v0.2.0](https://github.com/cucumber/cucumber/compare/v0.1.16...v0.2.0)
|
1194
1204
|
|
1195
1205
|
This release sports a bunch of new and exciting features, as well a major rewrite of Cucumber's internals.
|
1196
1206
|
The rewrite was done to address technical debt and to have a code base that is easier to evolve and maintain.
|
@@ -1203,17 +1213,17 @@ Since the grammar has changed, there are some new keywords. We have to rely on t
|
|
1203
1213
|
to provide updated translations. This is much easier than before - just update languages.yml.
|
1204
1214
|
There is no static code generation anymore. To list all languages:
|
1205
1215
|
|
1206
|
-
|
1216
|
+
cucumber --lang help
|
1207
1217
|
|
1208
1218
|
And to list the keywords for a particular language:
|
1209
1219
|
|
1210
|
-
|
1220
|
+
cucumber --lang en-lol help
|
1211
1221
|
|
1212
1222
|
There are some really awesome new features in this release: Tagging, Autoformatting, automatic
|
1213
1223
|
aliasing of keywords in all languages, full Ruby 1.9 support and improved output
|
1214
1224
|
for multiline arguments are some of the highlights.
|
1215
1225
|
|
1216
|
-
|
1226
|
+
### Bugfixes
|
1217
1227
|
* New StepInvocation breaks console formatter for pending steps. (#241 Jacob Radford)
|
1218
1228
|
* Within Scenario Outlines when replacing with a nil in a step name use empty string instead. (#237 Joseph Wilk)
|
1219
1229
|
* Fixed bug with Scenario Outlines incorrectly replacing values in step tables with nil. (#237 Joseph Wilk)
|
@@ -1235,7 +1245,7 @@ for multiline arguments are some of the highlights.
|
|
1235
1245
|
* Nested steps don't show mismatch (#116 Aslak Hellesøy)
|
1236
1246
|
* Pending steps in > steps called from steps (#65 Aslak Hellesøy)
|
1237
1247
|
|
1238
|
-
|
1248
|
+
### New features
|
1239
1249
|
* Australian translation (Josh Graham)
|
1240
1250
|
* Added World#puts(announcment) which lets you output text to the formatted output (#222 Rob Kaufmann)
|
1241
1251
|
* Added Table#transpose to to allow use of vertically aligned table keys (Torbjørn Vatn, Aslak Hellesøy)
|
@@ -1265,13 +1275,13 @@ for multiline arguments are some of the highlights.
|
|
1265
1275
|
* It's no longer necessary to compile the Treetop grammar when adding a new language. Localised parser is generated at runtime. (Aslak Hellesøy)
|
1266
1276
|
* New --guess option tries to guess the best step definition match instead of raising Cucumber::Multiple. (Jake Howerton)
|
1267
1277
|
|
1268
|
-
|
1278
|
+
### Removed features
|
1269
1279
|
* "GivenScenario" is gone. Instead you can call Steps from Step Definitions, or use the new Background feature (#153)
|
1270
1280
|
* "More Examples" is gone. "Scenario" + "More Examples" is no longer supported. Use "Scenario Outline" + "Examples" instead.
|
1271
1281
|
* Pure Ruby features are no longer supported.
|
1272
1282
|
* Remove --color option in autotest. Can be added manually in cucumber.yml (#215 Jean-Michel Garnier)
|
1273
1283
|
|
1274
|
-
|
1284
|
+
## 0.1.16.4
|
1275
1285
|
|
1276
1286
|
Bugfix release.
|
1277
1287
|
|
@@ -1279,13 +1289,13 @@ IMPORTANT NOTE FOR RAILS USERS.
|
|
1279
1289
|
The template used to generate your features/support/env.rb has changed. You have to apply a minor change
|
1280
1290
|
manually for existing Rails projects when you upgrade to this version. Change this:
|
1281
1291
|
|
1282
|
-
|
1292
|
+
require 'webrat/rspec-rails'
|
1283
1293
|
|
1284
1294
|
to this:
|
1285
1295
|
|
1286
|
-
|
1296
|
+
require 'webrat/core/matchers'
|
1287
1297
|
|
1288
|
-
|
1298
|
+
### New features
|
1289
1299
|
* Finnish translation (Tero Tilus)
|
1290
1300
|
* Use Webrat's #contain matcher in generated "I should (not) see" step definitions (Bryan Helmkamp)
|
1291
1301
|
|
@@ -1295,53 +1305,53 @@ to this:
|
|
1295
1305
|
* Better handling of ARGV (#169 David Chelimsky, Ben Mabey)
|
1296
1306
|
* Compatibility with ruby-debug (do ARGV.dup in bin/cucumber so it can restart ruby with same args) (Aslak Hellesøy)
|
1297
1307
|
|
1298
|
-
|
1308
|
+
## [v0.1.16](https://github.com/cucumber/cucumber/compare/v0.1.15...v0.1.16)
|
1299
1309
|
|
1300
1310
|
This is a small bugfix release. The most notable improvement is compatibility with Webrat 0.4. Rails/Webrat users should
|
1301
1311
|
upgrade both Cucumber and Webrat gems.
|
1302
1312
|
|
1303
|
-
|
1313
|
+
### New features
|
1304
1314
|
* Allow argument placeholders in step tables and multiline comments (#121 Joseph Wilk)
|
1305
1315
|
* Scenario Outline can be followed by several named Examples sections (#123 Aslak Hellesøy)
|
1306
1316
|
* Add the #binary= method back to the Rake task. It is needed by merb_cucumber for running the features of a merb app with it's bundled gems. (Thomas Marek)
|
1307
1317
|
* Added a /^When I go to (.+)$/ step definition to webrat_steps.rb and a simple page name to path mapping method (Bryan Helmkamp)
|
1308
1318
|
|
1309
|
-
|
1319
|
+
### Bugfixes
|
1310
1320
|
* Fix to run single scenarios when the line number specified doesn't correspond to a step (i.e. blank lines or rows) (#160 Luismi Cavallé)
|
1311
1321
|
|
1312
|
-
|
1322
|
+
### Removed features
|
1313
1323
|
|
1314
|
-
|
1324
|
+
## [v0.1.15](https://github.com/cucumber/cucumber/compare/v0.1.14...v0.1.15)
|
1315
1325
|
|
1316
1326
|
Bugfix release
|
1317
1327
|
|
1318
|
-
|
1328
|
+
### New features
|
1319
1329
|
* 한국어! (Korean!) (John Hwang)
|
1320
1330
|
|
1321
|
-
|
1331
|
+
### Bugfixes
|
1322
1332
|
* --dry-run skips running before/after/steps (#147 Ian Dees)
|
1323
1333
|
* Fix a minor bug in the console formatter's summary (David Chelimsky)
|
1324
1334
|
* Better quoting of Scenario names in Autotest (Peter Jaros)
|
1325
1335
|
* Added some small workarounds for unicode handling on Windows (Aslak Hellesøy)
|
1326
1336
|
|
1327
|
-
|
1337
|
+
## [v0.1.14](https://github.com/cucumber/cucumber/compare/v0.1.13...v0.1.14)
|
1328
1338
|
|
1329
1339
|
This is the first release of Cucumber that runs on Ruby 1.9. There are still some encoding-related issues
|
1330
1340
|
with Arabic (ar), Japanese (ja) and Simplified Chinese (zh-CN). Patches are welcome. Other than that -
|
1331
1341
|
a couple of minor bug fixes and polishing.
|
1332
1342
|
|
1333
|
-
|
1343
|
+
### New features
|
1334
1344
|
* Pretty formatter shows number of scenarios (#139 Joseph Wilk)
|
1335
1345
|
* Rudimentary support for Ruby 1.9. Now it's ok to file Ruby 1.9-related bugs.
|
1336
1346
|
|
1337
|
-
|
1347
|
+
### Bugfixes
|
1338
1348
|
* Fixed "No such file or directory -- cucumber (LoadError)" bug with AutoTest (Aslak Hellesøy)
|
1339
1349
|
* Fixed `load_missing_constant': uninitialized constant Dispatcher error with Rails (Aslak Hellesøy)
|
1340
1350
|
|
1341
|
-
|
1351
|
+
### Removed features
|
1342
1352
|
* The #binary= method is gone from the Rake task. It will always point to the binary in the current gem. (Aslak Hellesøy)
|
1343
1353
|
|
1344
|
-
|
1354
|
+
## [v0.1.13](https://github.com/cucumber/cucumber/compare/v0.1.12...v0.1.13)
|
1345
1355
|
|
1346
1356
|
It's time for some new features again. Output is now much better since you can use diffing, tweak
|
1347
1357
|
the output colours and get the full --backtrace if you want. Managing your support/* files became
|
@@ -1351,7 +1361,7 @@ bug fixes.
|
|
1351
1361
|
|
1352
1362
|
Enjoy!
|
1353
1363
|
|
1354
|
-
|
1364
|
+
### New features
|
1355
1365
|
* Console output is no longer bold, but regular. Step arguments are bold instead of blold+underlined. (Aslak Hellesøy)
|
1356
1366
|
* Console output can be configured with CUCUMBER_COLORS in your shell. (Aslak Hellesøy)
|
1357
1367
|
* Added new --backtrace option to show full backtrace (Aslak Hellesøy)
|
@@ -1363,7 +1373,7 @@ Enjoy!
|
|
1363
1373
|
* Scenario Outlines are now usable in pure ruby (Joseph Wilk)
|
1364
1374
|
* Add support for calling 'pending' from step definitions. (#112 Joseph Wilk)
|
1365
1375
|
|
1366
|
-
|
1376
|
+
### Bugfixes
|
1367
1377
|
* Make rails before filters work correctly (#122, #129 Guillermo Álvarez Fernández)
|
1368
1378
|
* Proper Unicode support for Windows command shells: Just require cucumber/formatter/unicode in env.rb (Aslak Hellesøy)
|
1369
1379
|
* Fixed disappearing "a" on Windows (#81 Aslak Hellesøy)
|
@@ -1374,51 +1384,51 @@ Enjoy!
|
|
1374
1384
|
* document :x run option in command line help (#114, Aslak Hellesøy)
|
1375
1385
|
* Change 'visits' to 'visit' in features generator to comply with new Webrat API (Darius Roberts)
|
1376
1386
|
|
1377
|
-
|
1387
|
+
### Removed features
|
1378
1388
|
|
1379
|
-
|
1389
|
+
## [v0.1.12](https://github.com/cucumber/cucumber/compare/v0.1.11...v0.1.12)
|
1380
1390
|
|
1381
1391
|
This is the "getting serious with IronRuby release" - largely based on
|
1382
1392
|
"Patrick Gannon":http://www.patrickgannon.net/archive/2008/10/23/bdd-style-feature-tests-using-ironruby-and-rspeccucumber.aspx's
|
1383
1393
|
blog entry.
|
1384
1394
|
|
1385
|
-
|
1395
|
+
### New features
|
1386
1396
|
* Cucumber works with IronRuby/.NET - http://github.com/aslakhellesoy/cucumber/wikis/ironruby-and-net (Aslak Hellesøy)
|
1387
1397
|
|
1388
|
-
|
1398
|
+
### Bugfixes
|
1389
1399
|
* Fixed bug which was preventing coloring under Autotest (#111, Alan Larkin)
|
1390
1400
|
|
1391
|
-
|
1401
|
+
### Removed features
|
1392
1402
|
None
|
1393
1403
|
|
1394
|
-
|
1404
|
+
## [v0.1.11](https://github.com/cucumber/cucumber/compare/v0.1.10...v0.1.11)
|
1395
1405
|
|
1396
1406
|
Bugfix release with a couple of minor additional features to the command line options.
|
1397
1407
|
|
1398
|
-
|
1408
|
+
### New features
|
1399
1409
|
* Capture output from cucumber in Autotest (Alan Larkin)
|
1400
1410
|
* Update cucumber generator to work with latest Webrat (Bryan Helkamp)
|
1401
1411
|
* CUCUMBR LIKEZ 2 SPEEK WIF KATS. KTHXBAI (Aimee Daniells)
|
1402
1412
|
* Support for dynamically pluggable formatters (#99 Joseph Wilk)
|
1403
1413
|
* --verbose mode to see ruby files and feature files loaded by Cucumber (#106 Joseph Wilk)
|
1404
1414
|
|
1405
|
-
|
1415
|
+
### Bugfixes
|
1406
1416
|
* The jcode library is not loaded on JRuby/Rails. Workaround for http://tinyurl.com/55uu3u. (Aslak Hellesøy)
|
1407
1417
|
* Support including modules for class passed to --format (#109 Joseph Wilk)
|
1408
1418
|
|
1409
|
-
|
1419
|
+
### Removed features
|
1410
1420
|
* The cucumber gem no longer depends on the rspec gem. It must be downloaded manually if RSpec is used. (Jeff Rafter)
|
1411
1421
|
|
1412
|
-
|
1422
|
+
## [v0.1.10](https://github.com/cucumber/cucumber/compare/v0.1.9...v0.1.10)
|
1413
1423
|
|
1414
1424
|
This release mostly has smaller bugfixes. The most significant new feature is how
|
1415
1425
|
line numbers are specified. You can now run multiple features at specific lines numbers like this:
|
1416
1426
|
|
1417
|
-
|
1427
|
+
cucumber foo.feature:15 bar.feature:6:45:111
|
1418
1428
|
|
1419
1429
|
This will run foo.feature at line 15 and bar.feature at line 6, 45 and 111.
|
1420
1430
|
|
1421
|
-
|
1431
|
+
### New features
|
1422
1432
|
* Added example showing how to use Cucumber with Test::Unit + Matchy instead of RSpec (Aslak Hellesøy)
|
1423
1433
|
* Yield existing world object to World block (#87 Aslak Hellesøy)
|
1424
1434
|
* AUTOFEATURE=tRue works (case insensitive) (Aslak Hellesøy)
|
@@ -1428,18 +1438,18 @@ This will run foo.feature at line 15 and bar.feature at line 6, 45 and 111.
|
|
1428
1438
|
* Try to load webrat gem if it's not installed as a plugin (Aslak Hellesøy)
|
1429
1439
|
* Support example.feature:20 or example.feature:10:20:30 syntax for running features at specific line number(s). (#88 Joseph Wilk)
|
1430
1440
|
|
1431
|
-
|
1441
|
+
### Bugfixes
|
1432
1442
|
* Windows - all the 'a' characters in the output have gone on strike (#81 Luis Lavena, Joseph Wilk, Aslak Hellesøy)
|
1433
1443
|
* Raise a nice error when encountering step definition without block (#95 Aslak Hellesøy)
|
1434
1444
|
* Features written using Ruby where breaking due to missing a line number (#91 Joseph Wilk)
|
1435
1445
|
* Directly creating a Table meant the scenario table header was never set which was causing a formatter error (#91 Joseph Wilk)
|
1436
1446
|
|
1437
|
-
|
1447
|
+
### Removed features
|
1438
1448
|
* $KCODE='u' is no longer done automatically. Developers should do that explicitly when needed in step definitions or env.rb.
|
1439
1449
|
* Step definition without a block being treated as pending (#64 Joseph Wilk)
|
1440
1450
|
* The --line option has been removed. Use the new file.feature:line format instead.
|
1441
1451
|
|
1442
|
-
|
1452
|
+
## [v0.1.9](https://github.com/cucumber/cucumber/compare/v0.1.8...v0.1.9)
|
1443
1453
|
|
1444
1454
|
With this release Cucumber supports 19 (!) natural languages:
|
1445
1455
|
|
@@ -1469,26 +1479,26 @@ add it: http://github.com/aslakhellesoy/cucumber/wikis/spoken-languages
|
|
1469
1479
|
Main functional changes in this release is "Autotest":http://github.com/aslakhellesoy/cucumber/wikis/autotest-integration
|
1470
1480
|
support and how multiline strings work in feature files:
|
1471
1481
|
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1482
|
+
# In your .feature file
|
1483
|
+
Then I should see
|
1484
|
+
"""
|
1485
|
+
A string
|
1486
|
+
that "indents"
|
1487
|
+
and spans
|
1488
|
+
several lines
|
1479
1489
|
|
1480
|
-
|
1490
|
+
"""
|
1481
1491
|
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1492
|
+
# In your steps.rb file
|
1493
|
+
Then 'I should see' do |text|
|
1494
|
+
text.should == "A string\n that \"indents\"\nand spans\nseveral lines\n"
|
1495
|
+
end
|
1486
1496
|
|
1487
1497
|
The triple quotes are used to define the start and end of a string, and it also defines what gets stripped away
|
1488
1498
|
in the inside string. If the triple quotes are indented 4 spaces, then the text within will have the 4 first
|
1489
1499
|
spaces removed too.
|
1490
1500
|
|
1491
|
-
|
1501
|
+
### New features
|
1492
1502
|
* Added --[no-]color option to force color on or off (Peter Jaros)
|
1493
1503
|
* Step definition without a block will be treated as pending (#64 Joseph Wilk)
|
1494
1504
|
* Added support for Welsh (improvements welcome) (Joseph Wilk)
|
@@ -1505,7 +1515,7 @@ spaces removed too.
|
|
1505
1515
|
* Added support for Japanese. (Kakutani Shintaro)
|
1506
1516
|
* Added support for Texan (improvements welcome). (Aslak Hellesøy)
|
1507
1517
|
|
1508
|
-
|
1518
|
+
### Bugfixes
|
1509
1519
|
* Pending step snippets should escape special Regexp characters (#82 Joseph Wilk)
|
1510
1520
|
* Scenario without a body shouldn't show up as complete (#63 Josh Knowles)
|
1511
1521
|
* Fixed bug where utf-8 strings where breaking comment alighments. (#79 Joseph Wilk)
|
@@ -1519,10 +1529,10 @@ spaces removed too.
|
|
1519
1529
|
* Don't load cucumber.yml unless it exists (Aslak Hellesøy)
|
1520
1530
|
* Fixing bug where specifying line number 1 in a feature which starts with a scenario with a scenario table was raising an error (#56 Joseph Wilk)
|
1521
1531
|
|
1522
|
-
|
1532
|
+
### Removed features
|
1523
1533
|
|
1524
1534
|
|
1525
|
-
|
1535
|
+
## [v0.1.8](https://github.com/cucumber/cucumber/compare/v0.1.7...v0.1.8)
|
1526
1536
|
|
1527
1537
|
This release extends the support for tables. PLEASE NOTE THAT TABLES ARE STILL EXPERIMENTAL.
|
1528
1538
|
In previous releases it has been possible to use tables to define "more examples" of a scenario in
|
@@ -1530,22 +1540,22 @@ a FIT-style column fixture kind of way. Now you can also use tables as arguments
|
|
1530
1540
|
|
1531
1541
|
Tables used to define more examples after a scenario must now be prefixed. In English it looks like this:
|
1532
1542
|
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1543
|
+
Feature: Addition
|
1544
|
+
In order to avoid silly mistakes
|
1545
|
+
As a math idiot
|
1546
|
+
I want to be told the sum of two numbers
|
1537
1547
|
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1548
|
+
Scenario: Add two numbers
|
1549
|
+
Given I have entered 50 into the calculator
|
1550
|
+
And I have entered 70 into the calculator
|
1551
|
+
When I press add
|
1552
|
+
Then the result should be 120 on the screen
|
1543
1553
|
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1554
|
+
More Examples:
|
1555
|
+
| input_1 | input_2 | button | output |
|
1556
|
+
| 20 | 30 | add | 50 |
|
1557
|
+
| 2 | 5 | add | 7 |
|
1558
|
+
| 0 | 40 | add | 40 |
|
1549
1559
|
|
1550
1560
|
Languages that are not updated yet will have to use "More Examples" until we get the translations.
|
1551
1561
|
|
@@ -1554,32 +1564,32 @@ that can span several lines. This can be a table or a string.
|
|
1554
1564
|
|
1555
1565
|
Example:
|
1556
1566
|
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1561
|
-
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
|
1566
|
-
|
1567
|
-
|
1568
|
-
|
1569
|
-
|
1567
|
+
Given the following people exist:
|
1568
|
+
| name | email | phone |
|
1569
|
+
| Aslak | aslak@email.com | 123 |
|
1570
|
+
| Joe | joe@email.com | 234 |
|
1571
|
+
| Bryan | bryan@email.org | 456 |
|
1572
|
+
When I search for email.com
|
1573
|
+
Then I should see:
|
1574
|
+
| name | email | phone |
|
1575
|
+
| Aslak | aslak@email.com | 123 |
|
1576
|
+
| Joe | joe@email.com | 234 |
|
1577
|
+
And I should see:
|
1578
|
+
"Some text
|
1579
|
+
on several lines"
|
1570
1580
|
|
1571
1581
|
The step definitions for such multiline steps must define an extra block argument for the argument:
|
1572
1582
|
|
1573
|
-
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1583
|
+
Given /the following people exist:/ do |people_table|
|
1584
|
+
# people_table is of type Cucumber::Model::Table
|
1585
|
+
# See RDoc for more info
|
1586
|
+
end
|
1577
1587
|
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1588
|
+
Then /I should see:/ do |string|
|
1589
|
+
# string is a plain old ruby String with leading spaces on each line removed
|
1590
|
+
end
|
1581
1591
|
|
1582
|
-
|
1592
|
+
### New features
|
1583
1593
|
* Added profile formatter. (#35, Joseph Wilk)
|
1584
1594
|
* Added support for Chinese Simplified. (Liming Lian)
|
1585
1595
|
* Added support for Dutch. (Sjoerd Tieleman)
|
@@ -1589,41 +1599,41 @@ The step definitions for such multiline steps must define an extra block argumen
|
|
1589
1599
|
* Show the file for the feature as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
|
1590
1600
|
* Show the feature file and line for pending steps as a comment when displaying with the pretty formatter. (#40, Joseph Wilk)
|
1591
1601
|
|
1592
|
-
|
1602
|
+
### Bugfixes
|
1593
1603
|
* Fixed speling errors in Spanish (Daniel Cadenas)
|
1594
1604
|
* ActionMailer delivery_method should not be set to test (#41, Luke Melia)
|
1595
1605
|
* Reverse incorrectly ordered args in webrat select step (#43, David Chelimsky)
|
1596
1606
|
* Support comments above the first scenario (#31, Aslak Hellesøy)
|
1597
1607
|
* Fixed the HTML Formatter to use actual values for FIT table headers (#30, Joseph Wilk)
|
1598
1608
|
|
1599
|
-
|
1609
|
+
### Removed features
|
1600
1610
|
* Removed the /^I go to (.*)$/ step from common_webrat.rb - it's not language agnostic and provides little value.
|
1601
1611
|
|
1602
|
-
|
1612
|
+
### New features
|
1603
1613
|
* Added new --out option to make it easier to specify output from Rake and cucumber.yml
|
1604
1614
|
|
1605
|
-
|
1615
|
+
## [v0.1.7](https://github.com/cucumber/cucumber/compare/v0.1.6...v0.1.7)
|
1606
1616
|
|
1607
1617
|
This release fixes a few bugs and adds some new features. The most notable features are:
|
1608
1618
|
|
1609
|
-
|
1619
|
+
### Calling steps from steps
|
1610
1620
|
|
1611
1621
|
Step definitions are a little bit closer to having regular method semantics.
|
1612
1622
|
You define them, but now you can also call them from other steps. Here is an
|
1613
1623
|
example:
|
1614
1624
|
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1625
|
+
Given /I am logged in as an (.*) named (.*)$/ do |role, name|
|
1626
|
+
Given "I am registered as #{role}, #{name}, secret"
|
1627
|
+
When "I log in with #{name}, secret"
|
1628
|
+
end
|
1619
1629
|
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1630
|
+
Given /I am registered as (.*), (.*), (.*)/ do |role, name, password|
|
1631
|
+
# (Code removed for brevity)
|
1632
|
+
end
|
1623
1633
|
|
1624
|
-
|
1625
|
-
|
1626
|
-
|
1634
|
+
When /I log in with (.*), (.*)/ do |name, password|
|
1635
|
+
# (Code removed for brevity)
|
1636
|
+
end
|
1627
1637
|
|
1628
1638
|
This means that steps can be reused in other steps. The GivenScenario feature achieves a similar
|
1629
1639
|
effect (on the scenario level), but this feature is something we're not very happy with, mostly
|
@@ -1632,29 +1642,29 @@ because it's not parameterisable. Calling steps from steps is.
|
|
1632
1642
|
GivenScenario will still be working several releases, but the plan is to remove it completely in
|
1633
1643
|
the 0.3.0 release.
|
1634
1644
|
|
1635
|
-
|
1645
|
+
### Seeing where a step is defined
|
1636
1646
|
|
1637
1647
|
Prior to this release it could be hard to find out where the ruby step definition matching
|
1638
1648
|
a plain text step is defined. Not anymore! Cucumber will now output this:
|
1639
1649
|
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1650
|
+
Scenario: Regular numbers
|
1651
|
+
Given I have entered 3 into the calculator # features/steps/calculator_steps.rb:12
|
1652
|
+
And I have entered 2 into the calculator # features/steps/calculator_steps.rb:12
|
1653
|
+
When I press divide # features/steps/calculator_steps.rb:16
|
1654
|
+
Then the result should be 1.5 on the screen # features/steps/calculator_steps.rb:20
|
1655
|
+
And the result class should be Float # features/steps/calculator_steps.rb:24
|
1646
1656
|
|
1647
|
-
|
1657
|
+
### Bugfixes
|
1648
1658
|
* Fixed a bug in the command line args being lost when using --profile (#27, Joseph Wilk)
|
1649
1659
|
* Fixed a bug in Webrat selects (Tim Glen)
|
1650
1660
|
* Fixed parsing of DOS line endings (#2, #28, Aslak Hellesøy)
|
1651
1661
|
|
1652
|
-
|
1662
|
+
### New features
|
1653
1663
|
* Steps can be called from other steps (#3, Bryan Helmkamp, Aslak Hellesøy)
|
1654
1664
|
* Added But keyword to all languages (#21, Aslak Hellesøy)
|
1655
1665
|
* Added --no-source option to display step definition location next to step text (#26, Joseph Wilk, Aslak Hellesøy)
|
1656
1666
|
* Added more Webrat steps (#25, Tim Glen)
|
1657
1667
|
|
1658
|
-
|
1668
|
+
## [v0.1.6](https://github.com/cucumber/cucumber/compare/f3292f4023a707099d02602b2bd6c4ca3cec6820...v0.1.6)
|
1659
1669
|
|
1660
1670
|
First gem release!
|