Component test reference
verifier run
The run subcommand and its flags
Load the config and model, start the component, drive every protocol, and write results.
Synopsis
verifier [-c FILE] [-l LEVEL] run [options]
Description
verifier run drives a complete test against a running
component. It reads the configuration file, loads the interface model,
opens transports, and for each configured iteration walks every protocol
declared for the component under test.
For each protocol, Verifier makes as many attempts as the
configuration allows. Each attempt starts the component fresh (unless
restart: false is set in config), opens transports, drives
the protocol by sending generated messages and validating what the
component sends back, then tears down the component and transports. A
protocol passes an iteration when at least one of its attempts is
valid.
Results are written to a timestamped artifact directory under
.verifier/. When the TUI is not active, Verifier also
prints the results to stdout as JSON, followed by a one-line verdict per
protocol. Use --no-tty or --quiet for
unattended environments, and verifier results passed after
a run to gate on the outcome.
Options
--cmdwait MS: Optional (Defaults to0) Milliseconds to wait after starting each command given with-kbefore Verifier begins the test. Ignored when no-kis given.-k/--command CMD: Optional Command to start the component. Repeatable. Each-kappends one command to thecommandslist from the config file rather than replacing it. Commands added this way capture stdout and stderr, restart between attempts, use a shutdown wait of 0 ms, and share the startup wait set by--cmdwait.-n/--component NAME: Optional Fully-qualified name of the component to test. Overridescomponentin the config file.--dry-run: Not yet implemented.--iterations N: Optional Number of iterations to run. Overridesiterationsin the config file.--json FILE: Optional Write JSON results to FILE. When omitted and the TUI is not active, results are printed to stdout.--junit FILE: Not yet implemented.--log-file FILE: Optional Write detailed log output to FILE in addition to the artifact log.--no-artifacts-dir: Optional Skip creating the.verifier/artifact directory for this run.--no-color: Not yet implemented.--no-tty: Optional Disable the TUI and print plain log output. Implied when stdout is not a terminal.-q/--quiet: Optional Disable the TUI. Has the same effect as--no-tty: log output, the JSON results, and the summary still print to the terminal.--retries N: Optional Maximum attempts per protocol. Overridesattemptsin the config file.--stream FILE: Optional Write per-attempt streaming results to FILE. When the artifact directory is in use, FILE is a copy made after the run finishes; add--no-artifacts-dirto have Verifier stream into FILE live.-t/--testtype TYPE: Optional Test type. Choices:valid,invalid,rand. Overridestest_typein the config file.--trace-file FILE: Optional Write the event-level trace to FILE. Copied after the run on the same terms as--stream.
Passing any of the three unimplemented flags makes
verifier run fail immediately with
not yet implemented, before the config is read.
Examples
Run against the default config in the current directory:
verifier run
Run with an explicit config file and increased log detail:
verifier -c /opt/sensor/verifier.yaml -l debug run
Run non-interactively in CI, then gate on the outcome:
verifier run --no-tty
verifier results passed
Write results to a file without opening the TUI:
verifier run --quiet --json results.json