cucumber-html-formatter 18.0.0 → 19.0.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.
@@ -0,0 +1,33 @@
1
+ require 'cucumber-compatibility-kit'
2
+ require 'cucumber/html_formatter'
3
+
4
+ describe Cucumber::HTMLFormatter.name do
5
+
6
+ Cucumber::CompatibilityKit.gherkin_examples.each do |example_name|
7
+ def run_formatter(messages)
8
+ out = StringIO.new
9
+ formatter = Cucumber::HTMLFormatter::Formatter.new(out)
10
+ formatter.process_messages(messages)
11
+ out.string
12
+ end
13
+
14
+ describe "'#{example_name}' example" do
15
+ subject(:html_report) { run_formatter(File.readlines(example_ndjson)) }
16
+
17
+ let(:example_ndjson) { "#{Cucumber::CompatibilityKit.example_path(example_name)}/#{example_name}.feature.ndjson" }
18
+
19
+ it { is_expected.to match(/\A<!DOCTYPE html>\s?<html/) }
20
+ it { is_expected.to match(/<\/html>\Z/) }
21
+ end
22
+ end
23
+
24
+ Cucumber::CompatibilityKit.markdown_examples.each do |example_name|
25
+ describe "'#{example_name}' example" do
26
+ let(:example_ndjson) { "#{Cucumber::CompatibilityKit.example_path(example_name)}/#{example_name}.feature.md.ndjson" }
27
+ subject(:html_report) { run_formatter(File.readlines(example_ndjson)) }
28
+
29
+ it { is_expected.to match(/\A<!DOCTYPE html>\s?<html/) }
30
+ it { is_expected.to match(/<\/html>\Z/) }
31
+ end
32
+ end
33
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-html-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.0.0
4
+ version: 19.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Prêtre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-26 00:00:00.000000000 Z
11
+ date: 2022-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber-messages
@@ -70,6 +70,26 @@ dependencies:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 3.10.0
73
+ - !ruby/object:Gem::Dependency
74
+ name: cucumber-compatibility-kit
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '9.1'
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 9.1.2
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '9.1'
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 9.1.2
73
93
  description: HTML formatter for Cucumber
74
94
  email: cukes@googlegroups.com
75
95
  executables:
@@ -84,6 +104,7 @@ files:
84
104
  - lib/cucumber/html_formatter.rb
85
105
  - lib/cucumber/html_formatter/assets_loader.rb
86
106
  - lib/cucumber/html_formatter/template_writer.rb
107
+ - spec/acceptance_spec.rb
87
108
  - spec/capture_warnings.rb
88
109
  - spec/html-formatter/assets_loader_spec.rb
89
110
  - spec/html-formatter/template_writer_spec.rb
@@ -114,12 +135,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
135
  - !ruby/object:Gem::Version
115
136
  version: '0'
116
137
  requirements: []
117
- rubygems_version: 3.1.6
138
+ rubygems_version: 3.2.32
118
139
  signing_key:
119
140
  specification_version: 4
120
- summary: cucumber-html-formatter-18.0.0
141
+ summary: cucumber-html-formatter-19.0.0
121
142
  test_files:
122
- - spec/html_formatter_spec.rb
143
+ - spec/acceptance_spec.rb
123
144
  - spec/capture_warnings.rb
124
- - spec/html-formatter/template_writer_spec.rb
125
145
  - spec/html-formatter/assets_loader_spec.rb
146
+ - spec/html-formatter/template_writer_spec.rb
147
+ - spec/html_formatter_spec.rb