Immutable configuration for a single cosim test or test class.
Attributes:
source_generator: Path to the PyCDE hardware generation script, or a
callable ``(config, tmp_dir) -> sources_dir``.
args: Arguments passed to the script; ``{tmp_dir}`` is interpolated.
simulator: Simulator backend name (e.g. ``"verilator"``).
top: Top-level module name for the simulator.
debug: If True, enable verbose simulator output.
timeout_s: Maximum wall-clock seconds before the test is killed.
failure_matcher: Pattern applied to simulator output to detect errors.
warning_matcher: Pattern applied to simulator output to detect warnings.
tmp_dir_root: Root directory for temporary directories. If None, uses system temp.
delete_tmp_dir: If True, delete temporary directories after test completion.
class_name: Name of the test class (for class-based tests). None for function tests.
test_name: Name of the test function or method.
pytest_run_id: Unique identifier for the pytest run (e.g., "pytest-12345").
xdist_worker_id: ID of the xdist worker if running under pytest-xdist (e.g., "gw0").
save_waveform: If True, dump waveform file. Format depends on backend. Requires debug=True.
Definition at line 141 of file pytest.py.