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'