Skip to content
Draft
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
examples, and conformance tests
([#50](https://github.com/ctrf-io/ctrf/pull/50)).

[Unreleased]: https://github.com/ctrf-io/ctrf/compare/v0.1.0...HEAD
[Unreleased]: https://github.com/ctrf-io/ctrf/compare/v0.2.0...HEAD
[0.2.0]: https://github.com/ctrf-io/ctrf/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/ctrf-io/ctrf/compare/v0.0.4...v0.1.0
[0.0.4]: https://github.com/ctrf-io/ctrf/compare/v0.0.3...v0.0.4
[0.0.3]: https://github.com/ctrf-io/ctrf/compare/v0.0.2...v0.0.3
Expand Down
2 changes: 1 addition & 1 deletion examples/comprehensive.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"reportFormat": "CTRF",
"specVersion": "0.2.0",
"specVersion": "0.3.0",
"reportId": "9d2c6a10-3f7a-4e22-9a8f-1a2b3c4d5e6f",
"runId": "run-2025-11-24-pr-123",
"timestamp": "2025-11-24T12:00:00Z",
Expand Down
2 changes: 1 addition & 1 deletion examples/coordinated-retry-initial.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"reportFormat": "CTRF",
"specVersion": "0.2.0",
"specVersion": "0.3.0",
"reportId": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"runId": "coordinated-example-run",
"results": {
Expand Down
2 changes: 1 addition & 1 deletion examples/coordinated-retry-merged.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"reportFormat": "CTRF",
"specVersion": "0.2.0",
"specVersion": "0.3.0",
"reportId": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
"runId": "coordinated-example-run",
"results": {
Expand Down
2 changes: 1 addition & 1 deletion examples/coordinated-retry-rerun.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"reportFormat": "CTRF",
"specVersion": "0.2.0",
"specVersion": "0.3.0",
"reportId": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
"runId": "coordinated-example-run",
"results": {
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": {
"name": "example-runner"
Expand Down
2 changes: 1 addition & 1 deletion examples/parameterized-cases.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"reportFormat": "CTRF",
"specVersion": "0.2.0",
"specVersion": "0.3.0",
"runId": "example-parameterized-run",
"results": {
"tool": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-diagnostics.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": {
"name": "example-runner",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-insights.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"reportId": "7c4e1c20-7c89-4f30-9b52-1f6f9d6b8f21",
"results": {
"tool": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-retries.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": {
"name": "example-runner",
Expand Down
26 changes: 13 additions & 13 deletions spec/ctrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

## Common Test Report Format

**Version:** 0.2.0
**Version:** 0.3.0
(This version corresponds directly to the CTRF `specVersion` field.)

**Date:** 2026-10-10
**Date:** 2026-10-24

**Status:** Working Draft

Expand Down Expand Up @@ -2023,7 +2023,7 @@ It is the ONLY permitted extension point within the baseline object.

CTRF follows **Semantic Versioning**.

This document defines CTRF version `0.2.0`.
This document defines CTRF version `0.3.0`.

Before CTRF `1.0.0`:

Expand Down Expand Up @@ -3051,7 +3051,7 @@ It includes:
```json title="Minimal CTRF document"
{
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": {
"name": "example-runner"
Expand Down Expand Up @@ -3092,7 +3092,7 @@ It includes:
```json title="CTRF document with retries"
{
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": {
"name": "example-runner",
Expand Down Expand Up @@ -3149,7 +3149,7 @@ It includes:
```json title="CTRF document with diagnostics"
{
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": {
"name": "example-runner",
Expand Down Expand Up @@ -3213,7 +3213,7 @@ It includes:
```json title="CTRF document with insights and baseline"
{
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"reportId": "7c4e1c20-7c89-4f30-9b52-1f6f9d6b8f21",
"results": {
"tool": {
Expand Down Expand Up @@ -3316,7 +3316,7 @@ It includes:
```json title="Comprehensive CTRF document"
{
"reportFormat": "CTRF",
"specVersion": "0.2.0",
"specVersion": "0.3.0",
"reportId": "9d2c6a10-3f7a-4e22-9a8f-1a2b3c4d5e6f",
"runId": "run-20251124-e2e-staging",
"timestamp": "2025-11-24T12:00:00Z",
Expand Down Expand Up @@ -3511,7 +3511,7 @@ The `ctrf.` and `ctrf/` namespace prefixes are reserved for CTRF-defined extensi
```json title="CTRF document with namespaced extra objects"
{
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"extra": {
"myorg.ci": {
"pipeline": {
Expand Down Expand Up @@ -3593,7 +3593,7 @@ This example matches `examples/parameterized-cases.json`.
```json title="Parameterized test cases"
{
"reportFormat": "CTRF",
"specVersion": "0.2.0",
"specVersion": "0.3.0",
"runId": "example-parameterized-run",
"results": {
"tool": {
Expand Down Expand Up @@ -3655,7 +3655,7 @@ Each block below matches its named standalone example.
```json title="Initial process report"
{
"reportFormat": "CTRF",
"specVersion": "0.2.0",
"specVersion": "0.3.0",
"reportId": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
"runId": "coordinated-example-run",
"results": {
Expand Down Expand Up @@ -3704,7 +3704,7 @@ Each block below matches its named standalone example.
```json title="Retry process report"
{
"reportFormat": "CTRF",
"specVersion": "0.2.0",
"specVersion": "0.3.0",
"reportId": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
"runId": "coordinated-example-run",
"results": {
Expand Down Expand Up @@ -3742,7 +3742,7 @@ Each block below matches its named standalone example.
```json title="Merged coordinated retry report"
{
"reportFormat": "CTRF",
"specVersion": "0.2.0",
"specVersion": "0.3.0",
"reportId": "cccccccc-cccc-4ccc-8ccc-cccccccccccc",
"runId": "coordinated-example-run",
"results": {
Expand Down
22 changes: 11 additions & 11 deletions tests/ctrf.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"description": "Missing reportFormat - invalid",
"valid": false,
"data": {
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": { "name": "runner" },
"summary": { "tests": 1, "passed": 1, "failed": 0, "pending": 0, "skipped": 0, "other": 0, "start": 1609459200000, "stop": 1609459201000 },
Expand All @@ -56,15 +56,15 @@
"valid": false,
"data": {
"reportFormat": "CTRF",
"specVersion": "0.1.0"
"specVersion": "0.3.0"
}
},
{
"description": "Missing tests array - invalid",
"valid": false,
"data": {
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": { "name": "runner" },
"summary": { "tests": 1, "passed": 1, "failed": 0, "pending": 0, "skipped": 0, "other": 0, "start": 1609459200000, "stop": 1609459201000 }
Expand All @@ -76,7 +76,7 @@
"valid": false,
"data": {
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": { "name": "runner" },
"summary": { "tests": 1, "passed": 1, "failed": 0, "pending": 0, "skipped": 0, "other": 0, "start": 1609459200000, "stop": 1609459201000 },
Expand All @@ -89,7 +89,7 @@
"valid": false,
"data": {
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"unknownProperty": "should fail",
"results": {
"tool": { "name": "runner" },
Expand All @@ -103,7 +103,7 @@
"valid": false,
"data": {
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": { "name": "runner" },
"summary": { "tests": 1, "passed": 1, "failed": 0, "pending": 0, "skipped": 0, "other": 0, "start": 1609459200000, "stop": 1609459201000 },
Expand All @@ -116,7 +116,7 @@
"valid": false,
"data": {
"reportFormat": "NOT-CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": { "name": "runner" },
"summary": { "tests": 1, "passed": 1, "failed": 0, "pending": 0, "skipped": 0, "other": 0, "start": 1609459200000, "stop": 1609459201000 },
Expand All @@ -142,7 +142,7 @@
"valid": false,
"data": {
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": { "name": "runner" },
"summary": { "tests": 1, "passed": 1, "failed": 0, "pending": 0, "skipped": 0, "other": 0, "start": 1609459200000, "stop": 1609459201000 },
Expand All @@ -155,7 +155,7 @@
"valid": false,
"data": {
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": { "name": "runner" },
"summary": { "tests": 1, "passed": 1, "failed": 0, "pending": 0, "skipped": 0, "other": 0, "start": 1609459200000, "stop": 1609459201000 },
Expand All @@ -168,7 +168,7 @@
"valid": false,
"data": {
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": {},
"summary": { "tests": 1, "passed": 1, "failed": 0, "pending": 0, "skipped": 0, "other": 0, "start": 1609459200000, "stop": 1609459201000 },
Expand All @@ -181,7 +181,7 @@
"valid": false,
"data": {
"reportFormat": "CTRF",
"specVersion": "0.1.0",
"specVersion": "0.3.0",
"results": {
"tool": { "name": "" },
"summary": { "tests": 1, "passed": 1, "failed": 0, "pending": 0, "skipped": 0, "other": 0, "start": 1609459200000, "stop": 1609459201000 },
Expand Down
Loading
Loading