API reference

Tests

Test results ingested from a task's JUnit report, failing tests first.

GET/v1/ci/jobs/{id}/tests

List test results

Test results, failing first.

Permission: ci:jobs.read

Parameters

NameTypeRequiredDescription
idpathstringRequiredThe job's ID.
cursorquerystringOptional
limitquerystringOptional
shardquerystringOptional
statusquerystringOptional
taskquerystringOptional

Response200 OK

failed_totalintegerRequired
next_cursorstring or null
testsarray of objectsRequired
tests[].duration_msintegerRequired
tests[].filestring or null
tests[].lineinteger or null
tests[].messagestring or null
first 5 lines
tests[].namestringRequired
tests[].shardstring or null
tests[].stackarray of strings
the first 20 frames of the failure, one per entry
tests[].started_atstring (date-time) or null
when the test started, where the runner's report says (nextest's testcase timestamp); with duration_ms the run's timeline. absent from other runners and on rows ingested before it
tests[].statusstringRequired
One of passed, failed, skipped, flaky
tests[].stderr_tailstring or null
only in detailed
tests[].stdout_tailstring or null
only in detailed
tests[].suitestring or null
the class, package or file the runner grouped the test under; absent on rows ingested before P5
tests[].taskstringRequired
tests[].truncatedboolean
a message, stack or tail was cut at the ingestion bounds
totalintegerRequired
curl "$CIRESK_API/v1/ci/jobs/job_0109badfc220cd056b2c0e862ac73d40/tests" \
  -H "Authorization: Bearer $CIRESK_KEY"