What a test run is and how it's processed
A test run is one execution of your test suite, made up of the JUnit XML reports a CI build uploads under a shared build_id. Most of TestNod, including the dashboard and alerts, works from test runs.
What a run records
When every upload for a build has been processed, the run stores:
- Each test suite from every upload, with its name and total duration.
- Each test case in those suites, with its status, duration, and any failure or error details.
- The metadata sent with the upload, including branch, commit SHA, run URL, build ID, and tags. See Run metadata.
- The submission parameters from each upload, which we use for debugging.
A processed run doesn't change. Uploading again with a new build_id creates a new run instead of updating the old one.
How build_id groups parallel CI uploads
Every upload carries a build_id, and all uploads that share a project and build_id attach to the same pending run. That's how a parallel or matrix build shows up as a single test run. See Parallel and matrix builds for how to set this up in CI. The run only leaves pending when /finalize is called with that build_id and every attached upload has finished.
Test run processing states
| State | Meaning |
|---|---|
pending |
Uploads are attached, and the run is waiting for /finalize and for each upload to finish. |
processing |
Finalize was called and TestNod is combining the uploads into one run. |
processed |
The run is ready to read, and alert checks run after it reaches this state. |
failed |
None of the uploads could be read, or the run was never finalized and aged out of your plan's history. The stored message says which. |
Runs only move forward. TestNod doesn't retry a failed run or reprocess a processed one, so once you've fixed the problem behind a failure, upload again with a new build_id. See Troubleshooting uploads for runs that stay in pending or processing.
Test run results
A processed run also has a result, which describes how its tests did:
| Result | Meaning |
|---|---|
tests_passed |
Every test case passed or was skipped. |
tests_failed |
At least one test failed. |
tests_errored |
At least one test errored, or at least one of the build's uploads couldn't be read. |
A run can be processed and still have a tests_failed result, which means TestNod read it fine but the suite was red.
Monthly limit and history
A test run counts toward your plan's monthly limit once it reaches processed, whatever its result. A build that uploads several reports under one build_id counts once, and runs that fail or never finalize don't count.
Runs older than your plan's history drop out of the app and the API. TestNod keeps them instead of deleting them, so they come back after an upgrade, and opening a link to one shows a page saying it's older than your plan's history. See Plans and billing for each plan's limit and history.
Test run public ID
Each run has a public ID numbered within its project, so 42 is the project's 42nd run. The upload response returns it, and run URLs use it.
Where runs come from
You create a run by uploading test results from CI, and TestNod has no form for entering results by hand. The Submission API page documents the upload and finalize calls.