cucumber-formatters 1.0.0 → 1.1.0
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.
- checksums.yaml +4 -4
- data/lib/cucumber/formatter/failures.rb +15 -3
- data/lib/cucumber/formatter/simpledoc.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4ef04344a0a573b736f9faf27385e499a6acd64
|
4
|
+
data.tar.gz: 32c0a96f86b38afc6d2badb7c6781f716b07977d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91f7d7959c9d36b2390587898e2dc78c5497f156bee761ad7e5c43e3bc299b5842027df21888204d0618ce010888233194611bb2da3656342d326f4b5568f8dc
|
7
|
+
data.tar.gz: 7d51f5e6abd96bc92461070bdbd217861d25a4c452a39476b753a4f1e2d6a60042c9820174327057fb6405bc066361406a717265574db53ca80f519bd1586de6
|
@@ -13,14 +13,22 @@ module Cucumber
|
|
13
13
|
# Full stacktrace
|
14
14
|
#
|
15
15
|
class Failures
|
16
|
-
include
|
17
|
-
include
|
16
|
+
include Console
|
17
|
+
include Io
|
18
|
+
attr_writer :indent
|
18
19
|
attr_reader :runtime
|
19
20
|
|
20
21
|
def initialize(runtime, path_or_io, options)
|
21
22
|
@runtime = runtime
|
22
|
-
@io
|
23
|
+
@io = ensure_io(path_or_io)
|
23
24
|
@options = options
|
25
|
+
@exceptions = []
|
26
|
+
@indent = 0
|
27
|
+
@prefixes = options[:prefixes] || {}
|
28
|
+
@delayed_messages = []
|
29
|
+
@previous_step_keyword = nil
|
30
|
+
@snippets_input = []
|
31
|
+
@output = []
|
24
32
|
end
|
25
33
|
|
26
34
|
def before_features(_features)
|
@@ -80,6 +88,10 @@ module Cucumber
|
|
80
88
|
exception(table_row.exception, table_row.status, 6)
|
81
89
|
end
|
82
90
|
|
91
|
+
def after_test_step(test_step, result)
|
92
|
+
collect_snippet_data(test_step, result)
|
93
|
+
end
|
94
|
+
|
83
95
|
private
|
84
96
|
|
85
97
|
def print_scenario_summary
|
@@ -54,7 +54,7 @@ module Cucumber
|
|
54
54
|
|
55
55
|
def scenario_name(keyword, name, file_colon_line, _source_indent)
|
56
56
|
@scenario = " #{keyword}: #{name}"
|
57
|
-
@io.puts
|
57
|
+
@io.puts @scenario.to_s.ljust(75) + yellow(" #{file_colon_line}")
|
58
58
|
@io.flush
|
59
59
|
end
|
60
60
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-formatters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Slaughter
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.5.1
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: A helpful bunch of formatters
|
@@ -153,4 +153,3 @@ test_files:
|
|
153
153
|
- spec/simplecsv_spec.rb
|
154
154
|
- spec/simpledoc_spec.rb
|
155
155
|
- spec/spec_helper.rb
|
156
|
-
has_rdoc:
|