Skip to content

Your First Upload

Upload test results to Drape and see them in your dashboard.

Prerequisites

  • The drape CLI installed
  • Your DRAPE_API_KEY set as an environment variable
  • A JUnit XML test results file (most test frameworks can generate these)

Generate Test Results

If you don't have a JUnit XML file yet, most test frameworks can produce one:

pytest --junitxml=results.xml
jest --reporters=default --reporters=jest-junit
go test ./... -v 2>&1 | go-junit-report > results.xml

Upload Test Results

drape upload tests results.xml \
  --org your-org \
  --repo your-repo \
  --wait

The --wait flag tells the CLI to wait for server-side processing and print a summary:

Upload complete!
  Tests ingested: 142
  Failures: 3
  Suppressed: 1
  Result: FAIL (2 unsuppressed failures)

Upload Coverage

If your test framework also generates a coverage report:

drape upload coverage coverage.xml \
  --format cobertura \
  --org your-org \
  --repo your-repo

Next Steps