anchor.diff:  
   ## Importing JUnit XML
   
  -Most test frameworks export JUnit XML, however JUnit reports do not provide detailed span information. Therefore, features in Test Analytics that depend on span information aren't available when using JUnit as a data source. If you need span information, use the [json import](#importing-json) API instead.
  -
  -To import JUnit XML, make a POST request to `https://analytics-api.buildkite.com/v1/uploads`, with metadata and JUnit XML test results encoded as json in the request body:
  +Most test frameworks export JUnit XML, however JUnit reports do not provide detailed span information. Therefore, features in Test Analytics that depend on span information aren't available when using JUnit as a data source. If you need span information, use the [JSON import](#importing-json) API instead.
  +
  +To import JUnit XML, make a POST request to `https://analytics-api.buildkite.com/v1/uploads`, with metadata and JUnit XML test results encoded as JSON in the request body:
   
   * if you're making the request in a Buildkite pipeline, you can use the Buildkite [environment variables](/docs/pipelines/environment-variables#bk-env-vars) to set the metadata
   * if you're making it elsewhere, you'll need to set them yourself.
  
positive.code:     $ bundle
      ```
  
  3. Add the Test analytics code to your application in `spec/spec_helper.rb`, and set the envionment variable [securely](/docs/pipelines/secrets) on your agent or agents.
  
      ```rb
      require "rspec/buildkite/analytics"
  
negative.code: 
  {:toc}
  
  Test Analytics integrates directly with your test runner to provide in-depth information about your tests (including spans) in real time. The beta release ships with [RSpec](#integrating-with-rspec), and you can also upload test results by importing [JSON](#importing-json) or [JUnit XML](#importing-junit-xml).
  
  ## Integrating with RSpec
  
  [RSpec](https://rspec.info/) is a behaviour driven development library for Ruby.
  If you're aleady using RSpec for your tests, add the `rspec-buildkite-analytics` gem to your code to integrate your test results into your Test Analytics dashboard.
  
  1. Create a new branch:
  
  