Summary Object
The summary object provides a high-level overview of the test run, including counts of test outcomes and timing information. It offers an at-a-glance representation of the overall state of the run.
Properties
| Name | Type | Required | Description |
|---|---|---|---|
tests | Integer | Required | The total number of tests executed in the run. Should equal the length of the tests array. |
passed | Integer | Required | The count of tests that completed with a status of passed. |
failed | Integer | Required | The count of tests that completed with a status of failed. |
pending | Integer | Required | The count of tests whose status is pending. |
skipped | Integer | Required | The count of tests whose status is skipped. |
other | Integer | Required | The count of tests whose status is other. |
flaky | Integer | Optional | The count of tests identified as flaky. A test is flaky only if its final status is passed and it experienced one or more failed attempts before passing. |
suites | Integer | Optional | The number of test suites included in the run. |
start | Integer | Required | When test execution began, in milliseconds since the Unix epoch. |
stop | Integer | Required | When test execution ended, in milliseconds since the Unix epoch. Should be greater than or equal to start. |
duration | Integer | Optional | The total duration of the test run in milliseconds. Consumers may compute this as stop - start if not provided. |
extra | Object | Optional | Extension point for arbitrary summary-related metadata. |
All summary counts must be non-negative integers. Timestamps and duration
are integers measured in milliseconds.
Example
"summary": {
"tests": 10,
"passed": 7,
"failed": 2,
"pending": 1,
"skipped": 0,
"other": 0,
"flaky": 1,
"suites": 3,
"start": 1706644023000,
"stop": 1706644043000,
"duration": 20000
}