← 返回命令列表

Linux command

judo 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run tests from a YAML file

judo [path/to/test.yml]

Run a test suite directory

judo [path/to/tests/]

Run with a timeout

judo [path/to/test.yml] --timeout [5000]

Generate JUnit report

judo [path/to/test.yml] --junitreport

说明

judo is a CLI integration testing framework that tests command-line tools using simple YAML or JSON files. It executes commands, responds to stdin when expected stdout output occurs, asserts exit codes, and verifies that stdout and stderr contain or don't contain certain strings. The framework is designed for automated testing of CLI applications using nothing but stdin, stdout, and stderr, making it ideal for CI/CD pipelines.

FAQ

What is the judo command used for?

judo is a CLI integration testing framework that tests command-line tools using simple YAML or JSON files. It executes commands, responds to stdin when expected stdout output occurs, asserts exit codes, and verifies that stdout and stderr contain or don't contain certain strings. The framework is designed for automated testing of CLI applications using nothing but stdin, stdout, and stderr, making it ideal for CI/CD pipelines.

How do I run a basic judo example?

Run `judo [path/to/test.yml]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more judo examples?

This page includes 4 examples for judo, plus related commands for nearby Linux tasks.