Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion spec/integration/runners/queue/rspec_runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down