Skip to main content

Results Object

The results object is the core component of a CTRF document. It contains the outcomes represented by that document, which may be one shard or partition of a logical run or merged results from multiple workers. Related documents can be correlated with a shared runId.

Properties​

NameTypeRequiredDescription
toolObjectRequiredIdentifies the tool, framework, or system that produced the test results. See Tool Object.
summaryObjectRequiredAggregated statistics and timing data describing the test run. See Summary Object.
testsArrayRequiredThe list of test cases executed during the test run. Each element follows the Test Object structure.
environmentObjectOptionalDescribes the execution environment, system configuration, and build context. See Environment Object.
extraObjectOptionalExtension point for arbitrary metadata specific to the results.

Example​

"results": { 
"tool": {
"name": "jest",
"version": "29.7.0"
},
"summary": {
"tests": 10,
"passed": 8,
"failed": 1,
"skipped": 1,
"pending": 0,
"other": 0,
"start": 1706644023000,
"stop": 1706644043000
},
"tests": [
...
],
"environment": {
"appName": "my-app",
"buildNumber": 123
}
}