CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-allure-python-commons

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

Overall
score

94%

Overview
Eval results
Files

task.mdevals/scenario-10/

Test Report Generator

A Python module that creates functions for running tests with proper metadata and external system links. Each function should execute a test and link it to external resources like issue trackers and test case management systems for traceability.

Capabilities

Issue Tracker Integration

  • Creates a test function that links to a single issue with URL "https://github.com/myproject/issues/123" and name "GH-123" @test
  • Creates a test function that links to two issues: "https://jira.company.com/PROJ-456" (name "PROJ-456") and "https://jira.company.com/PROJ-457" (name "PROJ-457") @test

Test Case Management Integration

Combined Traceability Links

Implementation

@generates

API

def create_test_with_issue(issue_url: str, issue_name: str):
    """
    Creates and executes a test function that is linked to a single issue.

    Args:
        issue_url: The URL of the issue in the tracking system
        issue_name: The display name/identifier for the issue
    """
    pass

def create_test_with_multiple_issues(issues: list[tuple[str, str]]):
    """
    Creates and executes a test function that is linked to multiple issues.

    Args:
        issues: List of (url, name) tuples for each issue
    """
    pass

def create_test_with_testcase(testcase_url: str, testcase_name: str):
    """
    Creates and executes a test function that is linked to a test case.

    Args:
        testcase_url: The URL of the test case
        testcase_name: The display name/identifier for the test case
    """
    pass

def create_test_with_combined_links(issue_url: str, issue_name: str,
                                    testcase_url: str, testcase_name: str):
    """
    Creates and executes a test function that is linked to both an issue and a test case.

    Args:
        issue_url: The URL of the issue
        issue_name: The display name for the issue
        testcase_url: The URL of the test case
        testcase_name: The display name for the test case
    """
    pass

Dependencies { .dependencies }

allure-python-commons { .dependency }

Provides test reporting and external system integration capabilities.

Install with Tessl CLI

npx tessl i tessl/pypi-allure-python-commons

tile.json