Cuerdo.CLI (cuerdo v0.6.1)

Copy Markdown

CLI for automated test runner

Usage

Generating property-based tests from an Arazzo document

./cuerdo path/to/arazzo.yaml

Running previously failed tests

./cuerdo replay path/to/report.json

Options

  • --max-runs - Maximum number of cases to generate for each workflow
  • --max-shrink-steps - Maximum number of shrinking steps to apply when a failing case is found. Defaults to 0, meaning no shrinking is applied.
  • --exclude - Comma-separated list of workflow ids to exclude from the document
  • --only - Comma-separated list of workflow ids to execute from the document
  • --report-file - The report file destination. Defaults to report.json
  • --ui - Terminal UI style. Either rich or basic. Use basic for CI workflows. Defaults to rich

The options only apply when generating tests from an Arazzo document. When running as replay report.json then all the failing inputs are exercised again, ignoring any other command-line option.

For more information on the options, refer to Cuerdo.ArazzoCase

Summary

Functions

main(args)

run(list)