Viscacha.TestRunner 0.5.0

dotnet tool install --global Viscacha.TestRunner --version 0.5.0
                    
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 Viscacha.TestRunner --version 0.5.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Viscacha.TestRunner&version=0.5.0
                    
nuke :add-package Viscacha.TestRunner --version 0.5.0
                    

Viscacha TestRunner

A tool to run suites of HTTP API tests described in YAML files.

Usage

dotnet tool install --global viscacha-test
viscacha-test --input-file <suite.yaml> [--responses-directory <dir>]
  • --input-file <suite.yaml>: Path to the suite YAML file (required)
  • --responses-directory <dir>: Directory to save test responses (optional)

Variable Resolution

You can use ${var}, ${env:ENV_VAR}, or ${file:<file>:<format>} in your YAML to substitute variables or environment variables.

File resolution

Using the ${file:<file>:<format>} syntax in the YAML allows iterpolating file contents in the template. Currently only base64 is supported as format.

Suite YAML Example

variables:
  api_key: secret
configurations:
  - name: default
    path: config.yaml
tests:
  - name: get-users
    request-file: get-users.yaml
    configurations: [default]
    validations:
      - type: status
        status: 200

Test YAML Example

method: GET
path: /users
headers:
  Authorization: Bearer ${api_key}

Schemas

See TestRunner schema and Core schema.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
0.5.0 304 5/13/2025
0.4.3 160 5/9/2025
0.4.2 200 5/8/2025
0.4.1 193 5/7/2025
0.4.0 193 5/7/2025
0.3.0 199 5/1/2025
0.2.0 196 4/30/2025
0.1.0 223 4/24/2025