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
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Viscacha.TestRunner --version 0.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.