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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ctrf validate-strict <file-path> [--spec-version <version>]
**Parameters:**

- `file-path`: Path to CTRF report file (required)
- `--spec-version`: CTRF specification version to validate against. Supports `0.0.1`, `0.0.2`, `0.0.3`, `0.0.4`, `0.1.0`, and `latest` (default).
- `--spec-version`: CTRF specification version to validate against. Supports `0.0.1`, `0.0.2`, `0.0.3`, `0.0.4`, `0.1.0`, `0.2.0`, and `latest` (default).

**Modes:**

Expand All @@ -112,6 +112,7 @@ ctrf validate-strict <file-path> [--spec-version <version>]
ctrf validate report.json
ctrf validate-strict report.json
ctrf validate legacy-report.json --spec-version 0.0.2
ctrf validate examples/with-retries.json --spec-version 0.2.0
```

## filter
Expand Down
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.4.16/schema.json",
"$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand All @@ -24,7 +24,7 @@
"linter": {
"enabled": true,
"rules": {
"recommended": true
"preset": "recommended"
}
},
"javascript": {
Expand Down
5 changes: 4 additions & 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.2.0",
"results": {
"tool": {
"name": "example-runner",
Expand All @@ -25,19 +25,22 @@
},
{
"name": "flaky test",
"attemptId": "flaky-test-attempt-3",
"status": "passed",
"duration": 300,
"flaky": true,
"retries": 2,
"retryAttempts": [
{
"attempt": 1,
"attemptId": "flaky-test-attempt-1",
"status": "failed",
"duration": 120,
"message": "Connection timeout"
},
{
"attempt": 2,
"attemptId": "flaky-test-attempt-2",
"status": "failed",
"duration": 130,
"message": "Connection timeout"
Expand Down
Loading
Loading