We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca2f05b commit 6366704Copy full SHA for 6366704
1 file changed
test/unit/reporters/html_reporter_test.rb
@@ -173,6 +173,20 @@ def synchronize
173
assert_includes summary, @output_path.to_s
174
end
175
176
+ test "#summary pluralizes failures label for multiple failures" do
177
+ reporter = HTML.new(output_path: @output_path)
178
+ reporter.record([
179
+ build_failing_assertion("first failure"),
180
+ build_failing_assertion("second failure")
181
+ ])
182
+ reporter.finalize
183
+
184
+ summary = reporter.summary
185
+ assert_includes summary, "2 failures"
186
+ assert_includes summary, "2 screenshots"
187
+ assert_includes summary, @output_path.to_s
188
+ end
189
190
test "#summary when all pass shows no failures" do
191
reporter = HTML.new(output_path: @output_path)
192
reporter.record([build_passing_assertion("ok")])
0 commit comments