Skip to content

Commit de814ac

Browse files
committed
Add regression test for skipped count in plain runner summary
Ensures the ', N skipped.' field (shown when specs are filtered by missing_features) doesn't silently disappear.
1 parent ba10630 commit de814ac

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

test/runner_diagnostics_test.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,19 @@ def test_plain_output_starts_with_complexity_bar_summary_and_omits_suite_preambl
106106
refute_match(/\.{40}/, stdout)
107107
end
108108

109+
def test_plain_summary_includes_skipped_count_when_specs_are_filtered
110+
stdout, _stderr, status = run_liquid_spec(
111+
"empty_adapter.rb",
112+
"-s", "basics",
113+
"--max-failures", "1"
114+
)
115+
116+
assert_equal 1, status
117+
# empty_adapter opts out of ruby_types/ruby_drops/etc.; basics has specs
118+
# requiring those, so the summary must report a positive skipped count.
119+
assert_match(/, [1-9]\d* skipped\./, stdout)
120+
end
121+
109122
def test_printed_failures_are_lowest_complexity_across_prioritized_and_suite_specs
110123
Tempfile.create(["liquid-spec-high-complexity", ".yml"]) do |file|
111124
file.write(<<~YML)

0 commit comments

Comments
 (0)