Skip to content
Merged
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 @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Defined parameterized test cases and consistently distinguished test cases, test objects, and executions throughout the specification and schema descriptions without changing execution or retry semantics.

- Updated UUID references to RFC 9562 and clarified optional deterministic UUID generation for `testId`.

- Clarified that Test `threadId` identifies the thread or worker that executed the
Expand Down
46 changes: 23 additions & 23 deletions schema/ctrf.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,31 +79,31 @@
],
"properties": {
"tests": {
"description": "Total number of tests executed",
"description": "Total number of test cases executed",
"type": "integer"
},
"passed": {
"description": "Count of tests with status 'passed'",
"description": "Count of test cases with status 'passed'",
"type": "integer"
},
"failed": {
"description": "Count of tests with status 'failed'",
"description": "Count of test cases with status 'failed'",
"type": "integer"
},
"skipped": {
"description": "Count of tests with status 'skipped'",
"description": "Count of test cases with status 'skipped'",
"type": "integer"
},
"pending": {
"description": "Count of tests with status 'pending'",
"description": "Count of test cases with status 'pending'",
"type": "integer"
},
"other": {
"description": "Count of tests with status 'other'",
"description": "Count of test cases with status 'other'",
"type": "integer"
},
"flaky": {
"description": "Count of flaky tests (passed after failed attempts)",
"description": "Count of flaky test cases (passed after failed attempts)",
"type": "integer"
},
"suites": {
Expand All @@ -130,7 +130,7 @@
"additionalProperties": false
},
"tests": {
"description": "List of test cases executed during the run",
"description": "List of test case results for the run",
"type": "array",
"items": {
"description": "Individual test case result",
Expand All @@ -144,7 +144,7 @@
"minLength": 1
},
"testId": {
"description": "Stable identifier for the logical test case. Should be derived from stable test attributes when generated by a producer",
"description": "Stable identifier for the test case. Should be derived from stable test attributes when generated by a producer",
"type": "string",
"minLength": 1
},
Expand All @@ -168,19 +168,19 @@
"enum": [ "passed", "failed", "skipped", "pending", "other" ]
},
"duration": {
"description": "Test execution time (milliseconds)",
"description": "Execution time of the test case (milliseconds)",
"type": "integer"
},
"start": {
"description": "Test start time (milliseconds since Unix epoch)",
"description": "Test case execution start time (milliseconds since Unix epoch)",
"type": "integer"
},
"stop": {
"description": "Test end time (milliseconds since Unix epoch)",
"description": "Test case execution end time (milliseconds since Unix epoch)",
"type": "integer"
},
"suite": {
"description": "Suite hierarchy from top-level to immediate parent",
"description": "Suite hierarchy for the test case, from top-level to immediate parent",
"type": "array",
"minItems": 1,
"items": {
Expand All @@ -200,7 +200,7 @@
"type": "string"
},
"ai": {
"description": "AI-generated diagnostic data or suggestions",
"description": "AI-generated diagnostic data or suggestions related to the test result",
"type": "string"
},
"line": {
Expand Down Expand Up @@ -253,15 +253,15 @@
}
},
"type": {
"description": "Test classification (e.g., 'unit', 'integration', 'e2e')",
"description": "Test case classification (e.g., 'unit', 'integration', 'e2e')",
"type": "string"
},
"filePath": {
"description": "Path to the file defining this test",
"description": "Path to the file defining this test case",
"type": "string"
},
"retries": {
"description": "Number of times the test was re-executed after its initial attempt",
"description": "Number of times the test case was re-executed after its initial attempt",
"type": "integer",
"minimum": 0
},
Expand Down Expand Up @@ -383,7 +383,7 @@
}
},
"flaky": {
"description": "True if test passed after one or more failed attempts",
"description": "True if the test case passed after one or more failed attempts",
"type": "boolean"
},
"stdout": {
Expand Down Expand Up @@ -450,11 +450,11 @@
}
},
"parameters": {
"description": "Test parameters or input values",
"description": "Test parameters, input values, or contextual data relevant to the execution",
"type": "object"
},
"steps": {
"description": "Test steps or sub-operations",
"description": "Steps or sub-operations performed during test execution",
"type": "array",
"items": {
"description": "Individual test step",
Expand Down Expand Up @@ -484,7 +484,7 @@
}
},
"insights": {
"description": "Derived metrics for this test across runs",
"description": "Derived metrics for this test case across runs",
"type": "object",
"properties": {
"passRate": {
Expand All @@ -508,7 +508,7 @@
"$ref": "#/definitions/metricDelta"
},
"executedInRuns": {
"description": "Number of runs this test was executed in",
"description": "Number of runs this test case was executed in",
"type": "integer"
},
"extra": {
Expand Down Expand Up @@ -638,7 +638,7 @@
"$ref": "#/definitions/metricDelta"
},
"averageTestDuration": {
"description": "Average test duration with baseline comparison",
"description": "Average duration of test case executions with baseline comparison",
"$ref": "#/definitions/metricDelta"
},
"runsAnalyzed": {
Expand Down
Loading
Loading