cucumber-formatters 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dab7e3d60180710452190b1a588de544a9eddfe9
4
- data.tar.gz: 797b1b00ddb8266f62eba0f568b26848db4ddd87
3
+ metadata.gz: f0adf3d64043431d50dcda5110c390068a979293
4
+ data.tar.gz: c05caf89ce8135ad163092594a41420b38c3d24e
5
5
  SHA512:
6
- metadata.gz: 47d958adc95426196aeb52af261f8bb8d84eb1737f9133078a715b8cf913bcb38756644bbea18c686ff17f80e1242a7ffaf4f0af2a7abeb7b96e93b218d17dc5
7
- data.tar.gz: 976456775b581b40533efd35c026906db2fb42c45d3ebc1b9b57be54f3bf388b7697ac23ec668436d531dfbf524a1cd6f22ff6cbc3a16ebf81f8149f038ab1b1
6
+ metadata.gz: e96db4f3837f84833f9e40e0a48232ac25aefbdf4b621230698cf75a7fec33f4f24bf0e48c941d7fd51fa109c131dbc335f7ec1ea483c6059af641aee67b2171
7
+ data.tar.gz: 8a514f234a1d73e8fef2fc7e1e8ca757a8978ddbaf357cffc29cbcb7bedb072843c81dff5cf29abf1c342c475535261ec57926fcf57a9dd05e64f688943d27f8
@@ -19,15 +19,8 @@ module Cucumber
19
19
 
20
20
  def initialize(runtime, path_or_io, options)
21
21
  @runtime = runtime
22
- @io = ensure_io(path_or_io, 'failures')
22
+ @io = ensure_io(path_or_io)
23
23
  @options = options
24
- @exceptions = []
25
- @indent = 0
26
- @prefixes = options[:prefixes] || {}
27
- @delayed_messages = []
28
- @previous_step_keyword = nil
29
- @snippets_input = []
30
- @output = []
31
24
  end
32
25
 
33
26
  def before_features(_features)
@@ -87,10 +80,6 @@ module Cucumber
87
80
  exception(table_row.exception, table_row.status, 6)
88
81
  end
89
82
 
90
- def after_test_step(test_step, result)
91
- collect_snippet_data(test_step, result)
92
- end
93
-
94
83
  private
95
84
 
96
85
  def print_scenario_summary
@@ -11,7 +11,7 @@ module Cucumber
11
11
 
12
12
  def initialize(runtime, path_or_io, options)
13
13
  @runtime = runtime
14
- @io = ensure_io(path_or_io, 'simplecsv')
14
+ @io = ensure_io(path_or_io)
15
15
  @options = options
16
16
  end
17
17
 
@@ -14,7 +14,7 @@ module Cucumber
14
14
 
15
15
  def initialize(runtime, path_or_io, options)
16
16
  @runtime = runtime
17
- @io = ensure_io(path_or_io, 'simpledoc')
17
+ @io = ensure_io(path_or_io)
18
18
  @options = options
19
19
  end
20
20
 
@@ -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 @scenario.to_s.ljust(75) + yellow(" #{file_colon_line}")
57
+ @io.puts "#{@scenario}".ljust(75) + yellow(" #{file_colon_line}")
58
58
  @io.flush
59
59
  end
60
60
 
@@ -1,5 +1,4 @@
1
1
  require 'cucumber/formatter/failures'
2
- require 'cucumber/formatter/rerun_dump'
3
2
  require 'cucumber/formatter/simplecsv'
4
3
  require 'cucumber/formatter/simpledoc'
5
4
  require 'cucumber/cli/main'
@@ -11,11 +10,6 @@ Cucumber::Cli::Options::BUILTIN_FORMATS['failures'] = [
11
10
  'Outputs scenario information and stack trace when a test fails'
12
11
  ]
13
12
 
14
- Cucumber::Cli::Options::BUILTIN_FORMATS['rerundump'] = [
15
- 'Cucumber::Formatter::RerunDump',
16
- 'Outputs scenario file and line number on new lines. For use with --dry-run'
17
- ]
18
-
19
13
  Cucumber::Cli::Options::BUILTIN_FORMATS['simpledoc'] = [
20
14
  'Cucumber::Formatter::SimpleDoc',
21
15
  'Outputs feature, scenario and line number'
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,7 @@
1
+ require 'codeclimate-test-reporter'
1
2
  require 'coveralls'
2
3
 
3
4
  Coveralls.wear!
5
+ CodeClimate::TestReporter.start
4
6
 
5
7
  require 'cucumber/formatters'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-formatters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Slaughter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-22 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: cucumber
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '='
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 2.0.0
89
+ version: '2.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '='
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 2.0.0
96
+ version: '2.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: term-ansicolor
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -117,12 +117,10 @@ files:
117
117
  - LICENSE
118
118
  - README.md
119
119
  - lib/cucumber/formatter/failures.rb
120
- - lib/cucumber/formatter/rerun_dump.rb
121
120
  - lib/cucumber/formatter/simplecsv.rb
122
121
  - lib/cucumber/formatter/simpledoc.rb
123
122
  - lib/cucumber/formatters.rb
124
123
  - spec/failures_spec.rb
125
- - spec/rerun_dump_spec.rb
126
124
  - spec/simplecsv_spec.rb
127
125
  - spec/simpledoc_spec.rb
128
126
  - spec/spec_helper.rb
@@ -146,13 +144,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
144
  version: '0'
147
145
  requirements: []
148
146
  rubyforge_project:
149
- rubygems_version: 2.5.1
147
+ rubygems_version: 2.4.5
150
148
  signing_key:
151
149
  specification_version: 4
152
150
  summary: A helpful bunch of formatters
153
151
  test_files:
154
152
  - spec/failures_spec.rb
155
- - spec/rerun_dump_spec.rb
156
153
  - spec/simplecsv_spec.rb
157
154
  - spec/simpledoc_spec.rb
158
155
  - spec/spec_helper.rb
156
+ has_rdoc:
@@ -1,36 +0,0 @@
1
- require 'cucumber/formatter/io'
2
-
3
- module Cucumber
4
- module Formatter
5
- # Works like rerun but just outputs file location and line number
6
- # Each new test is output to a new line
7
- class RerunDump
8
- include Cucumber::Formatter::Io
9
-
10
- def initialize(_runtime, path_or_io, options)
11
- @io = ensure_io(path_or_io, 'rundump')
12
- @results = []
13
- @options = options
14
- end
15
-
16
- def after_test_case(test_case, _result)
17
- @results << [test_case.location.file, test_case.location.line]
18
- end
19
-
20
- def done
21
- return if @results.empty?
22
- @io.print file_failures.join("\n")
23
- end
24
-
25
- [:before_test_case, :before_test_step, :after_test_step].each do |method|
26
- define_method(method) { |*| }
27
- end
28
-
29
- private
30
-
31
- def file_failures
32
- @results.map { |file, lines| [file, lines].join(':') }
33
- end
34
- end
35
- end
36
- end
@@ -1,7 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Cucumber::Formatter::RerunDump do
4
- it 'is a class' do
5
- Cucumber::Formatter::RerunDump.is_a? Class
6
- end
7
- end