cucumber_spinner 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION +2 -1
- data/cucumber_spinner.gemspec +6 -5
- data/lib/cucumber_spinner.rb +2 -0
- data/lib/cucumber_spinner/curious_progress_bar_formatter.rb +19 -0
- data/lib/cucumber_spinner/progress_bar_formatter.rb +4 -6
- metadata +13 -5
data/Rakefile
CHANGED
@@ -24,11 +24,11 @@ begin
|
|
24
24
|
require 'jeweler'
|
25
25
|
Jeweler::Tasks.new do |gemspec|
|
26
26
|
gemspec.name = "cucumber_spinner"
|
27
|
-
gemspec.version = '0.
|
27
|
+
# gemspec.version = '0.2.0'
|
28
28
|
gemspec.summary = "Progress bar formatter for cucumber, shows failing scenarios immediately."
|
29
29
|
gemspec.email = "tobias.kraze@makandra.de"
|
30
30
|
gemspec.homepage = "http://github.com/makandra/cucumber_spinner"
|
31
|
-
gemspec.description = "Formatter for cucumber like the RSpecSpinner for RSpec. Shows a progress bar on the command line
|
31
|
+
gemspec.description = "Formatter for cucumber like the RSpecSpinner for RSpec. Shows a progress bar on the command line, prints failing scenarios immediately and can automatically show a browser dump of the error page."
|
32
32
|
gemspec.authors = ["Tobias Kraze"]
|
33
33
|
gemspec.add_dependency('rtui', '>=0.2.2')
|
34
34
|
end
|
data/VERSION
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
2
|
+
|
data/cucumber_spinner.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cucumber_spinner}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tobias Kraze"]
|
12
|
-
s.date = %q{
|
13
|
-
s.description = %q{Formatter for cucumber like the RSpecSpinner for RSpec. Shows a progress bar on the command line
|
12
|
+
s.date = %q{2011-01-28}
|
13
|
+
s.description = %q{Formatter for cucumber like the RSpecSpinner for RSpec. Shows a progress bar on the command line, prints failing scenarios immediately and can automatically show a browser dump of the error page.}
|
14
14
|
s.email = %q{tobias.kraze@makandra.de}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README.rdoc"
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
"VERSION",
|
24
24
|
"cucumber_spinner.gemspec",
|
25
25
|
"lib/cucumber_spinner.rb",
|
26
|
+
"lib/cucumber_spinner/curious_progress_bar_formatter.rb",
|
26
27
|
"lib/cucumber_spinner/formatted_io.rb",
|
27
28
|
"lib/cucumber_spinner/progress_bar_formatter.rb",
|
28
29
|
"pkg/cucumber_spinner-0.1.1.gem",
|
@@ -31,14 +32,14 @@ Gem::Specification.new do |s|
|
|
31
32
|
s.homepage = %q{http://github.com/makandra/cucumber_spinner}
|
32
33
|
s.rdoc_options = ["--charset=UTF-8"]
|
33
34
|
s.require_paths = ["lib"]
|
34
|
-
s.rubygems_version = %q{1.3.
|
35
|
+
s.rubygems_version = %q{1.3.7}
|
35
36
|
s.summary = %q{Progress bar formatter for cucumber, shows failing scenarios immediately.}
|
36
37
|
|
37
38
|
if s.respond_to? :specification_version then
|
38
39
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
39
40
|
s.specification_version = 3
|
40
41
|
|
41
|
-
if Gem::Version.new(Gem::
|
42
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
42
43
|
s.add_runtime_dependency(%q<rtui>, [">= 0.2.2"])
|
43
44
|
else
|
44
45
|
s.add_dependency(%q<rtui>, [">= 0.2.2"])
|
data/lib/cucumber_spinner.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
module CucumberSpinner
|
2
|
+
|
3
|
+
class CuriousProgressBarFormatter < ProgressBarFormatter
|
4
|
+
|
5
|
+
def failed!
|
6
|
+
super
|
7
|
+
show_the_page
|
8
|
+
end
|
9
|
+
|
10
|
+
def show_the_page
|
11
|
+
step_mother.step_match('show me the page').invoke(nil)
|
12
|
+
rescue StandardError => e
|
13
|
+
puts "Tried to show you the page the page with the error, but it failed due to #{e.class.name}: #{e.message}"
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
|
@@ -31,12 +31,8 @@ module CucumberSpinner
|
|
31
31
|
|
32
32
|
case status
|
33
33
|
when :pending: pending!
|
34
|
-
when :failed:
|
35
|
-
|
36
|
-
print_scenario
|
37
|
-
when :undefined:
|
38
|
-
undefined!
|
39
|
-
print_scenario
|
34
|
+
when :failed: failed!
|
35
|
+
when :undefined: undefined!
|
40
36
|
end
|
41
37
|
end
|
42
38
|
|
@@ -140,10 +136,12 @@ module CucumberSpinner
|
|
140
136
|
|
141
137
|
def undefined!
|
142
138
|
@error_state = :undefined unless @error_state == :failed
|
139
|
+
print_scenario
|
143
140
|
end
|
144
141
|
|
145
142
|
def failed!
|
146
143
|
@error_state = :failed
|
144
|
+
print_scenario
|
147
145
|
end
|
148
146
|
|
149
147
|
def with_color
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber_spinner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 23
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
|
-
- 1
|
8
8
|
- 2
|
9
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Tobias Kraze
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-01-28 00:00:00 +01:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rtui
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 19
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
- 2
|
@@ -31,7 +34,7 @@ dependencies:
|
|
31
34
|
version: 0.2.2
|
32
35
|
type: :runtime
|
33
36
|
version_requirements: *id001
|
34
|
-
description: Formatter for cucumber like the RSpecSpinner for RSpec. Shows a progress bar on the command line
|
37
|
+
description: Formatter for cucumber like the RSpecSpinner for RSpec. Shows a progress bar on the command line, prints failing scenarios immediately and can automatically show a browser dump of the error page.
|
35
38
|
email: tobias.kraze@makandra.de
|
36
39
|
executables: []
|
37
40
|
|
@@ -47,6 +50,7 @@ files:
|
|
47
50
|
- VERSION
|
48
51
|
- cucumber_spinner.gemspec
|
49
52
|
- lib/cucumber_spinner.rb
|
53
|
+
- lib/cucumber_spinner/curious_progress_bar_formatter.rb
|
50
54
|
- lib/cucumber_spinner/formatted_io.rb
|
51
55
|
- lib/cucumber_spinner/progress_bar_formatter.rb
|
52
56
|
- pkg/cucumber_spinner-0.1.1.gem
|
@@ -61,23 +65,27 @@ rdoc_options:
|
|
61
65
|
require_paths:
|
62
66
|
- lib
|
63
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
64
69
|
requirements:
|
65
70
|
- - ">="
|
66
71
|
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
67
73
|
segments:
|
68
74
|
- 0
|
69
75
|
version: "0"
|
70
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
71
78
|
requirements:
|
72
79
|
- - ">="
|
73
80
|
- !ruby/object:Gem::Version
|
81
|
+
hash: 3
|
74
82
|
segments:
|
75
83
|
- 0
|
76
84
|
version: "0"
|
77
85
|
requirements: []
|
78
86
|
|
79
87
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.3.
|
88
|
+
rubygems_version: 1.3.7
|
81
89
|
signing_key:
|
82
90
|
specification_version: 3
|
83
91
|
summary: Progress bar formatter for cucumber, shows failing scenarios immediately.
|