or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/allure-python-commons@2.15.x
tile.json

tessl/pypi-allure-python-commons

tessl install tessl/pypi-allure-python-commons@2.15.0

Contains the API for end users as well as helper functions and classes to build Allure adapters for Python test frameworks

Agent Success

Agent success rate when using this tile

94%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.27x

Baseline

Agent success rate without this tile

74%

task.mdevals/scenario-10/

Custom Allure Reporter Plugin

Build a custom plugin for the allure-python-commons testing framework that extends its reporting capabilities by intercepting and modifying test metadata at runtime.

Requirements

Your plugin should:

  1. Automatically prefix all test descriptions with a timestamp when tests start
  2. Track and log all test steps as they execute
  3. Intercept file attachments and log their details (filename and source path)
  4. Modify step titles to include a unique step identifier

The plugin must be properly registered with the allure plugin manager and implement the necessary hooks to achieve these behaviors.

Implementation

@generates

Test Cases

  • The plugin successfully registers with the allure plugin manager @test
  • Test descriptions are prefixed with timestamps when added @test
  • Step start events are tracked and logged @test
  • File attachments are intercepted and their details logged @test
  • Step titles are modified to include unique identifiers @test

API

class CustomAllurePlugin:
    """
    A custom plugin that extends Allure reporting with additional functionality.

    Implements hooks to:
    - Add timestamps to test descriptions
    - Track test step execution
    - Log attachment details
    - Modify step titles with unique IDs
    """
    pass

def register_plugin(plugin_instance):
    """
    Registers the custom plugin with the allure plugin manager.

    Args:
        plugin_instance: An instance of CustomAllurePlugin
    """
    pass

Dependencies { .dependencies }

allure-python-commons { .dependency }

Provides the plugin system and hooks for extending Allure test reporting capabilities.