CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-vedro

Pragmatic Testing Framework for Python with BDD-style syntax and pluggable architecture

49%

Overall

Evaluation49%

1.09x

Agent success when using this tile

Overview
Eval results
Files

task.mdevals/scenario-4/

Built-in Reporter Capture Harness

A small runnable harness that executes example scenarios using built-in console and JSON reporters while exercising output capture toggles and limits. Include two sample scenarios: one writes to stdout and the other writes to stderr so captured output is easy to verify.

Capabilities

Dual reporting by default

  • Running the harness with default settings emits human-friendly console output and writes a JSON report to the provided path via built-in reporters from the dependency. @test

Captured stdout and stderr

  • When capture is enabled, stdout/stderr produced by the sample scenarios is hidden from the console but available in captured output that accompanies the JSON report. @test

Passthrough mode

  • When capture is disabled, stdout/stderr from the sample scenarios is shown directly in the console and is not stored in captured output. @test

Capture limit enforcement

  • When a byte limit is provided for capture, the recorded stdout/stderr is truncated without exceeding that size and indicates truncation in the saved output. @test

Implementation

@generates

API

def build_runner(json_report_path: str, capture_enabled: bool = True, capture_limit: int | None = None):
    """Create a configured runner that uses built-in reporters and capture settings."""
    ...

def run_sample_suite(runner) -> int:
    """Execute two sample scenarios with contrasting stdout/stderr usage and return an exit status code."""
    ...

Dependencies { .dependencies }

vedro { .dependency }

Provides scenario execution, built-in reporters, and output capture.

tessl i tessl/pypi-vedro@1.14.0

tile.json