From dabaf6951c04d9656c0f5be3b8a32ef607837f4f Mon Sep 17 00:00:00 2001 From: Connor Shea <2977353+connorshea@users.noreply.github.com> Date: Sat, 25 Jul 2026 10:09:57 -0600 Subject: [PATCH] test: read coverage data from coverage_data.js SimpleCov 1.0 rewrote its HTML formatter: index.html is now a static shell that loads a client-side viewer, and the report data lives in coverage_data.js. Point the integration test at that file so the assertions on the covered spec file paths match again. Co-Authored-By: Claude Opus 5 (1M context) --- spec/integration/runners/queue/rspec_runner_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/integration/runners/queue/rspec_runner_spec.rb b/spec/integration/runners/queue/rspec_runner_spec.rb index 20ea044e..c384737c 100644 --- a/spec/integration/runners/queue/rspec_runner_spec.rb +++ b/spec/integration/runners/queue/rspec_runner_spec.rb @@ -2336,7 +2336,9 @@ def when_first_matching_example_defined(type:) context 'when the RSpec split by test examples is enabled AND simplecov is used' do let(:coverage_dir) { "#{KNAPSACK_PRO_TMP_DIR}/coverage" } - let(:coverage_file) { "#{coverage_dir}/index.html" } + # SimpleCov >= 1.0 renders index.html from data stored in coverage_data.js, + # so the covered files are listed there instead of in the HTML. + let(:coverage_file) { "#{coverage_dir}/coverage_data.js" } before do ENV['KNAPSACK_PRO_RSPEC_SPLIT_BY_TEST_EXAMPLES'] = 'true'