Contains the API for end users as well as helper functions and classes to build Allure adapters for Python test frameworks
Overall
score
94%
Build a utility module that assists with generating test execution reports by extracting and formatting test metadata.
Create a function create_report_entry(test_func, *args, **kwargs) that:
id: unique identifier stringtimestamp: timestamp in millisecondsfunction_name: name of the test functionparameters: extracted parameter informationCreate a function format_parameter_value(value) that:
Given a simple function def login(username, password): pass called with args ("user1", "pass123"), create_report_entry returns a dict with all required keys, and the id field contains a valid UUID format @test
Given a function with keyword args def process(data, timeout=30): pass called as process({"key": "value"}, timeout=60), the returned parameters field contains both positional and keyword arguments @test
Given various Python objects (string "test", list [1, 2, 3], dict {"a": 1}, custom object), format_parameter_value returns readable string representations @test
Two consecutive calls to create_report_entry with the same function generate different unique IDs @test
Provides test reporting utilities and helper functions.
Install with Tessl CLI
npx tessl i tessl/pypi-allure-python-commonsevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10