Skip to content

Commit

Permalink
fix(docs): fix bug in CircleCI example config. The --out value must b…
Browse files Browse the repository at this point in the history
…e the same in spec_helper/rails_helper. No need to set index there. Each CI node is isolated disk space.
  • Loading branch information
ArturT committed Jan 4, 2024
1 parent 5492870 commit 326866b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docusaurus/docs/ruby/circleci.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ You may want to [collect metadata](https://circleci.com/docs/collect-test-data/#
```ruby title="spec_helper.rb or rails_helper.rb"
# `TMP_REPORT` must be the same path as `--out`
# `TMP_REPORT` must be a full path (no `~`)
TMP_REPORT = "tmp/tmp_rspec_#{ENV['KNAPSACK_PRO_CI_NODE_INDEX']}.xml"
FINAL_REPORT = "tmp/final_rspec_#{ENV['KNAPSACK_PRO_CI_NODE_INDEX']}.xml"
TMP_REPORT = "tmp/rspec.xml"
FINAL_REPORT = "tmp/final_rspec.xml"

KnapsackPro::Hooks::Queue.after_subset_queue do |queue_id, subset_queue_id|
if File.exist?(TMP_REPORT)
Expand Down

0 comments on commit 326866b

Please sign in to comment.