Pragmatic Testing Framework for Python with BDD-style syntax and pluggable architecture
Build a helper module and demo project that exercise the testing framework's CLI runner, relying on the project's config file and plugin registry to control behavior. The helper should run the suite via the CLI, toggle a custom audit plugin, and report plugin registry state.
project_dir runs scenarios using that directory's config file and applies its reporter/output settings. @testaudit.log when enabled and writes nothing when disabled through the plugin management CLI. @test@generates
from pathlib import Path
from subprocess import CompletedProcess
from typing import Iterable
def run_suite(project_dir: Path, extra_args: Iterable[str] | None = None) -> CompletedProcess[str]:
"""Run the scenario suite via the framework CLI using the config located in project_dir."""
def enable_audit_plugin(project_dir: Path) -> CompletedProcess[str]:
"""Enable the audit plugin via the plugin management CLI."""
def disable_audit_plugin(project_dir: Path) -> CompletedProcess[str]:
"""Disable the audit plugin via the plugin management CLI."""
def list_plugins(project_dir: Path) -> str:
"""List plugins for the project and return the CLI output showing their states."""Scenario runner CLI with config loading and plugin registry management. @satisfied-by
tessl i tessl/pypi-vedro@1.14.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10