Skip to main content

Module script_adapter

Module script_adapter 

Source
Expand description

Script-based custom adapter for user-defined test frameworks.

Users can define custom adapters in testx.toml that run arbitrary commands and parse output in a standard format (JSON, JUnit XML, TAP, or line-based).

Structs§

RegexParserConfig
Configuration for regex-based output parsing.
ScriptAdapterConfig
Definition of a custom script adapter from config.
ScriptTestAdapter
A custom adapter that wraps ScriptAdapterConfig and implements the TestAdapter trait, allowing it to participate in the detection engine alongside built-in adapters.

Enums§

OutputParser
Output parser type for a script adapter.

Functions§

parse_script_output
Parse output from a script adapter using the configured parser.