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-8/

Plugin bootstrapper with validated plugin configs

Automate plugin setup for the testing framework while relying on its computed configuration validation to prevent misconfiguration.

Capabilities

Install and enable plugin via CLI

  • When given a plugin name and optional registry URL, it invokes the framework's plugin management command to install and enable it, returning the final status text. @test
  • If the plugin management command exits with an error code, surface a meaningful exception that includes stderr output. @test

Report plugin status

  • Provide a helper that runs the plugin listing command and returns parsed entries with plugin names and whether they are enabled. @test

Validate plugin options through computed configuration

  • Build a configuration class where plugin options are derived from a computed setting (such as the current environment) rather than hard-coded values. @test
  • When validation for plugin settings is enabled, attempting to set unknown plugin options should raise an error before any scenarios run. @test

Implementation

@generates

API

def ensure_plugin_installed(plugin_name: str, registry_url: str | None = None) -> str:
    """Install and enable a plugin using the framework's plugin CLI and return a short status message."""

def list_plugins() -> list[dict[str, str]]:
    """Run the framework's plugin listing command and return parsed plugin data with name and status keys."""

def build_config(env_name: str, plugin_options: dict[str, dict]) -> type:
    """Return a configuration class that derives plugin settings from computed values and enforces validation."""

Dependencies { .dependencies }

vedro { .dependency }

Enables scenario execution, plugin management commands, and computed configuration with validation guards.

tessl i tessl/pypi-vedro@1.14.0

tile.json