Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Optional `results.errors` in specification 0.3.0 for global error messages, traces and metadata, separate from individual test results and counts.

- Optional `assertionFailures` on final test results and retry history, with producer-formatted comparisons, individual diagnostics and `extra` metadata.

- Optional Test `description` in specification 0.3.0 for human-readable case context, separate from its name, suite and attempt diagnostics.
Expand Down
6 changes: 6 additions & 0 deletions examples/comprehensive.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@
}
}
],
"errors": [
{
"message": "Worker cleanup failed",
"trace": "Error: Worker cleanup failed\n at worker.js:18:5"
}
],
"environment": {
"reportName": "PR #123 E2E Tests",
"appName": "example-app",
Expand Down
6 changes: 6 additions & 0 deletions examples/with-retries.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
}
]
}
],
"errors": [
{
"message": "Shared teardown failed",
"trace": "Error: Database cleanup failed\n at cleanup.js:24:5"
}
]
}
}
25 changes: 25 additions & 0 deletions schema/ctrf.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,31 @@
},
"additionalProperties": false
},
"errors": {
"description": "Errors associated with the test run rather than an individual test result",
"type": "array",
"minItems": 1,
"items": {
"description": "Details of a global error",
"type": "object",
"minProperties": 1,
"properties": {
"message": {
"description": "Message associated with this global error",
"type": "string"
},
"trace": {
"description": "Stack trace associated with this global error",
"type": "string"
},
"extra": {
"description": "Extension point for arbitrary metadata",
"type": "object"
}
},
"additionalProperties": false
}
},
"extra": {
"description": "Extension point for arbitrary metadata",
"type": "object"
Expand Down
Loading
Loading