Skip to content

Commit

Permalink
add docs on potential conflicting gems with the collector
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasmine Quek committed Oct 5, 2023
1 parent 88b0309 commit 1ecbe84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/test_analytics/ruby_collectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Before you start, make sure RSpec runs with access to [CI environment variables]
bundle
```
3. Add the Test Analytics code to your application in `spec/spec_helper.rb`, and set the BUILDKITE_ANALYTICS_TOKEN [securely](/docs/pipelines/secrets) on your agent or agents.
3. Add the Test Analytics code to your application in `spec/spec_helper.rb`, and set the BUILDKITE_ANALYTICS_TOKEN [securely](/docs/pipelines/secrets) on your agent or agents. Please ensure gems that patch `Net::HTTP` like `httplog` and `sniffer` are required before `buildkite/test_collector` to avoid conflicts.
```rb
require "buildkite/test_collector"
Expand Down Expand Up @@ -89,7 +89,7 @@ If you're already using minitest for your tests, add the `buildkite-test_collect
bundle
```
3. Add the Test Analytics code to your application in `test/test_helper.rb`, and set the BUILDKITE_ANALYTICS_TOKEN [securely](/docs/pipelines/secrets) on your agent or agents.
3. Add the Test Analytics code to your application in `test/test_helper.rb`, and set the BUILDKITE_ANALYTICS_TOKEN [securely](/docs/pipelines/secrets) on your agent or agents. Please ensure gems that patch `Net::HTTP` like `httplog` and `sniffer` are required before `buildkite/test_collector` to avoid conflicts.
```rb
require "buildkite/test_collector"
Expand Down

0 comments on commit 1ecbe84

Please sign in to comment.