diff --git a/README.md b/README.md index 9ca1d37..6eb2a4a 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,15 @@ git commit -am "Add Buildkite Test Analytics" git push origin add-buildkite-test-analytics ``` +### VCR +If your test suites use [VCR](https://github.com/vcr/vcr) to stub network requests, you'll need to modify the config to allow actual network requests to Test Analytics. + +``` +VCR.configure do |c| + c.ignore_hosts "analytics-api.buildkite.com" +end +``` + ## 🗨️ Annotations This gem allows adding custom annotations to the span data sent to Buildkite using the [.annotate](https://github.com/buildkite/test-collector-ruby/blob/d9fe11341e4aa470e766febee38124b644572360/lib/buildkite/test_collector.rb#L64) method. For example: diff --git a/lib/buildkite/test_collector/uploader.rb b/lib/buildkite/test_collector/uploader.rb index 5947975..a4312ed 100644 --- a/lib/buildkite/test_collector/uploader.rb +++ b/lib/buildkite/test_collector/uploader.rb @@ -46,6 +46,7 @@ def self.upload(data) retry end rescue StandardError => e + $stderr.puts e $stderr.puts "#{Buildkite::TestCollector::NAME} #{Buildkite::TestCollector::VERSION} experienced an error when sending your data, you may be missing some executions for this run." end end