JTest.Cli 2.0.4-preview.35

This is a prerelease version of JTest.Cli.
There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global JTest.Cli --version 2.0.4-preview.35
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local JTest.Cli --version 2.0.4-preview.35
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=JTest.Cli&version=2.0.4-preview.35&prerelease
                    
nuke :add-package JTest.Cli --version 2.0.4-preview.35
                    

JTest

JTest runs JSON-defined API/integration tests and is published as the jtest .NET global tool. It is built to run in CI/CD pipelines: it fails honestly — a non-zero, class-specific exit code whenever anything is wrong — and produces one self-contained HTML report you can open offline.

Quick start

dotnet tool install --global JTest.Cli

Create tests/smoke.json:

{
  "version": "1.0",
  "tests": [
    {
      "name": "gets a user",
      "steps": [
        { "type": "http", "method": "GET", "url": "https://api.example.com/users/1" },
        { "type": "assert", "assert": [
          { "op": "equals", "actualValue": "{{$.this.statusCode}}", "expectedValue": 200 } ] }
      ]
    }
  ]
}

Validate and run it:

jtest validate "tests/**/*.json"
jtest run "tests/**/*.json" --report report.html --trace trace.json

The run exits 0 only if everything ran and passed. report.html is a single self-contained file; trace.json is the machine-readable evidence every report is projected from.

Why JTest 2.0

  • No false-green. A crashing suite, an empty discovery, an invalid definition, a timeout, or a cancellation produces a non-zero, class-specific exit code and is visible in the report.
  • Trustworthy report. A self-contained, failure-first, searchable HTML file that shows the complete nested execution (every loop iteration, template, and assertion) — safe to publish, with secrets redacted and no active markup.
  • Canonical evidence. Every report is a read-only projection of one versioned execution trace.
  • Formal language. The test-definition format has an authoritative, versioned JSON Schema that jtest validate enforces with located diagnostics.
  • Deterministic HTTP. Case-insensitive keyed headers, statusCode/status, and automatic per-case cookie sessions.

Exit codes

Code Meaning
0 success
1 test/assertion failures
2 execution error (crash, bad load, or zero results when files were expected)
3 validation error (schema-invalid definition)
4 aborted (cancelled or timed out)

Documentation

See also the CHANGELOG.

Build from source

dotnet build JTest.sln -c Release
dotnet test JTest.sln -c Release

License

This project is licensed under the MIT License — see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
2.0.4 85 11/24/2026
2.0.4-preview.35 40 11/24/2026
2.0.3 193 9/25/2026
2.0.3-preview.31 79 9/25/2026
2.0.1 184 9/17/2026
2.0.1-preview.27 79 9/24/2026
2.0.1-preview.26 72 9/24/2026
2.0.0 212 9/17/2026
2.0.0-preview.22 75 9/17/2026
2.0.0-preview.19 85 9/17/2026
2.0.0-preview.17 107 8/9/2026
2.0.0-preview.16 104 8/8/2026
2.0.0-preview.15 93 8/8/2026
2.0.0-preview.14 105 8/7/2026
2.0.0-preview.13 100 8/5/2026
2.0.0-preview.12 100 8/5/2026
2.0.0-preview.11 101 8/5/2026
2.0.0-preview.10 98 8/4/2026
2.0.0-preview.9 97 8/3/2026
2.0.0-preview.8 87 8/3/2026
Loading failed