aslakhellesoy-cucumber 0.3.7.3 → 0.3.7.4
Sign up to get free protection for your applications and to get access to all the features.
data/History.txt
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
* Most formatters now report how long a run took (#228 Aslak Hellesøy)
|
7
7
|
* Scenario and ExampleRow objects (passed to Before and After hooks) have #name and #line methods (#316 Aslak Hellesøy)
|
8
8
|
* Rails generator creates a cucumber environment file to avoid potential cache_classes conflicts in test.rb (#165, Ben Mabey)
|
9
|
+
* HTML formatter renders @tags (but the CSS is still ugly)
|
9
10
|
|
10
11
|
=== Removed/changed features
|
11
12
|
* The Cucumber Rake task will again fork by default (as before 0.3.4). Forking must be turned off explicitly. (Aslak Hellesøy)
|
@@ -83,6 +83,7 @@
|
|
83
83
|
<body>
|
84
84
|
<div class="cucumber">
|
85
85
|
<div class="feature">
|
86
|
+
<span class="tag">@background_tagged_before_on_outline</span>
|
86
87
|
<h2>Feature: Background tagged Before on Outline</h2>
|
87
88
|
<p>
|
88
89
|
</p>
|
@@ -140,6 +141,7 @@ Then I should have '<span class="passed_param">10</span>' cukes </d
|
|
140
141
|
</div>
|
141
142
|
</div>
|
142
143
|
<div class="feature">
|
144
|
+
<span class="tag">@after_file</span>
|
143
145
|
<h2>Feature: Failing background sample</h2>
|
144
146
|
<p>
|
145
147
|
</p>
|
@@ -442,7 +444,7 @@ Then I should have '<count>' cukes </div>
|
|
442
444
|
<td class="skipped" id="row_10_0">10</td>
|
443
445
|
</tr>
|
444
446
|
<tr>
|
445
|
-
<td
|
447
|
+
<td colspan="1" class="failed">
|
446
448
|
<pre>
|
447
449
|
FAIL (RuntimeError)
|
448
450
|
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
@@ -714,7 +716,7 @@ Given <other_state> without a table </div>
|
|
714
716
|
<td class="skipped" id="row_10_1">passing</td>
|
715
717
|
</tr>
|
716
718
|
<tr>
|
717
|
-
<td
|
719
|
+
<td colspan="2" class="failed">
|
718
720
|
<pre>
|
719
721
|
Undefined step: "missing without a table" (Cucumber::Undefined)
|
720
722
|
features/outline_sample.feature:6:in `Given <state> without a table' </pre>
|
@@ -729,7 +731,7 @@ features/outline_sample.feature:6:in `Given <state> without a table'
|
|
729
731
|
<td class="skipped" id="row_12_1">passing</td>
|
730
732
|
</tr>
|
731
733
|
<tr>
|
732
|
-
<td
|
734
|
+
<td colspan="2" class="failed">
|
733
735
|
<pre>
|
734
736
|
FAIL (RuntimeError)
|
735
737
|
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
@@ -752,10 +754,13 @@ features/outline_sample.feature:6:in `Given <state> without a table'
|
|
752
754
|
</div>
|
753
755
|
</div>
|
754
756
|
<div class="feature">
|
757
|
+
<span class="tag">@one</span>
|
755
758
|
<h2>Feature: Sample</h2>
|
756
759
|
<p>
|
757
760
|
</p>
|
758
761
|
<div class="scenario">
|
762
|
+
<span class="tag">@two</span>
|
763
|
+
<span class="tag">@three</span>
|
759
764
|
<h3>Scenario: Missing</h3>
|
760
765
|
<ol>
|
761
766
|
<li class="step undefined" id="features_sample_feature_6">
|
@@ -767,6 +772,7 @@ features/sample.feature:6:in `Given missing'</pre>
|
|
767
772
|
</ol>
|
768
773
|
</div>
|
769
774
|
<div class="scenario">
|
775
|
+
<span class="tag">@three</span>
|
770
776
|
<h3>Scenario: Passing</h3>
|
771
777
|
<ol>
|
772
778
|
<li class="step passed" id="features_sample_feature_10">
|
@@ -786,6 +792,7 @@ Given passing </div>
|
|
786
792
|
</ol>
|
787
793
|
</div>
|
788
794
|
<div class="scenario">
|
795
|
+
<span class="tag">@four</span>
|
789
796
|
<h3>Scenario: Failing</h3>
|
790
797
|
<ol>
|
791
798
|
<li class="step failed" id="features_sample_feature_16">
|
@@ -857,7 +864,7 @@ Given <state> without a table </div>
|
|
857
864
|
<td class="failed" id="row_16_0">failing</td>
|
858
865
|
</tr>
|
859
866
|
<tr>
|
860
|
-
<td
|
867
|
+
<td colspan="1" class="failed">
|
861
868
|
<pre>
|
862
869
|
FAIL (RuntimeError)
|
863
870
|
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
@@ -911,7 +918,7 @@ Given <state> without a table </div>
|
|
911
918
|
<td class="failed" id="row_32_0">failing</td>
|
912
919
|
</tr>
|
913
920
|
<tr>
|
914
|
-
<td
|
921
|
+
<td colspan="1" class="failed">
|
915
922
|
<pre>
|
916
923
|
FAIL (RuntimeError)
|
917
924
|
./features/step_definitions/sample_steps.rb:2:in `flunker'
|
@@ -923,6 +930,7 @@ features/search_sample.feature:25:in `Given <state> without a table'
|
|
923
930
|
</div>
|
924
931
|
</div>
|
925
932
|
<div class="feature">
|
933
|
+
<span class="tag">@lots</span>
|
926
934
|
<h2>Feature: Tons of cukes</h2>
|
927
935
|
<p>
|
928
936
|
</p>
|
@@ -88,6 +88,8 @@ end
|
|
88
88
|
|
89
89
|
Then /^"([^\"]*)" should have the same contents as "([^\"]*)"$/ do |actual_file, expected_file|
|
90
90
|
actual = IO.read(actual_file)
|
91
|
+
# Comment out to replace expected file. Use with care! Remember to update duration afterwards.
|
92
|
+
# File.open(expected_file, "w"){|io| io.write(actual)}
|
91
93
|
actual = replace_duration(actual, '0m30.005s')
|
92
94
|
actual.should == IO.read(expected_file)
|
93
95
|
end
|
@@ -257,6 +257,7 @@ module Cucumber
|
|
257
257
|
requires = @options[:require] || feature_dirs
|
258
258
|
files = requires.map do |path|
|
259
259
|
path = path.gsub(/\\/, '/') # In case we're on windows. Globs don't work with backslashes.
|
260
|
+
path = path.gsub(/\/$/, '') # Strip trailing slash.
|
260
261
|
File.directory?(path) ? Dir["#{path}/**/*.rb"] : path
|
261
262
|
end.flatten.uniq
|
262
263
|
sorted_files = files.sort { |a,b| (b =~ %r{/support/} || -1) <=> (a =~ %r{/support/} || -1) }.reject{|f| f =~ /^http/}
|
data/lib/cucumber/cli/main.rb
CHANGED
@@ -75,11 +75,12 @@ module Cucumber
|
|
75
75
|
private
|
76
76
|
|
77
77
|
def require_files
|
78
|
+
requires = configuration.files_to_require
|
78
79
|
verbose_log("Ruby files required:")
|
79
|
-
|
80
|
+
verbose_log(requires.map{|lib| " * #{lib}"}.join("\n"))
|
81
|
+
requires.each do |lib|
|
80
82
|
begin
|
81
83
|
require lib
|
82
|
-
verbose_log(" * #{lib}")
|
83
84
|
rescue LoadError => e
|
84
85
|
e.message << "\nFailed to load #{lib}"
|
85
86
|
raise e
|
data/lib/cucumber/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aslakhellesoy-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.7.
|
4
|
+
version: 0.3.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Aslak Helles\xC3\xB8y"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-26 00:00:00 -07:00
|
13
13
|
default_executable: cucumber
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|