Skip to main content

⚡ pytest-apmt-reporter

pytest-apmt-reporter is a premium, feature-rich, and visually stunning automated testing HTML reporter for Python, Pytest, and Playwright. Designed as a modern, high-fidelity alternative to Allure and Robot Framework, it features responsive layouts, a glowing glassmorphic dark-mode dashboard, interactive charts, nested execution steps, failure tracebacks, and automatically embedded screenshots.


🎨 Premium Visual Preview

(A sleek, glassmorphic dark-mode UI with vibrant neon colors, dynamic transitions, and interactive SVG status charts)


🚀 Easy & Beautiful Step-by-Step Guide

Step 1: 🔌 Installation

Install the package directly into your virtual environment:

pip install pytest-apmt-reporter

Step 2: ✍️ Write Your Tests

Organize your test cases using step decorators, custom logs, metadata, and screenshots:

import pytest_apmt_reporter as apmt

@apmt.step("1. Authenticate with credentials")
def login(username, password):
    apmt.attach("Connecting to authorization endpoint...", name="Network Handshake")
    # ... login logic ...

def test_purchase_flow(page):
    """Verify purchase process end-to-end"""
    apmt.set_environment_info("Environment", "Staging-US-East")
    
    with apmt.step("2. Populate Shopping Cart"):
        apmt.attach('{"item_id": 102, "qty": 1}', name="API Request Payload", attachment_type=apmt.AttachmentType.JSON)
        
    login("demo_user", "secure_pass")
    
    with apmt.step("3. Navigate to checkout and confirm"):
        page.goto("https://shop.dev.local/checkout")
        # If any assertion fails below, a screenshot is automatically captured!
        assert page.locator("#confirm-btn").is_visible()

Step 3: 🛠️ Run & Generate

Simply run pytest as you normally would. The reporter will auto-detect and generate a beautiful self-contained HTML dashboard.

# Run pytest (generates report.html by default)
pytest

# Customize output filename and location
pytest --apmt-html=reports/e2e_dashboard.html

# Set a custom title for the dashboard header
pytest --apmt-title="US Staging E2E Suite"

Step 4: 📊 View the Report

Open the generated HTML file in any browser of your choice.

  • Windows (PowerShell): Start-Process report.html
  • macOS/Linux: open report.html

⚖️ Why pytest-apmt-reporter?

Feature pytest-apmt-reporter pytest-html (Default) Allure
Design Aesthetics 🌟 Glowing Premium Dark Mode 📄 Basic XML-like Table 📊 Good (Requires Server)
Self-Contained Yes (100% Offline-First) Yes (when configured) No (Requires Java Server)
Zero Config Setup Yes (Plug-and-Play) Yes No (Complex CLI install)
Auto Screenshots Yes (Auto Playwright hooks) No No
Interactive Charts Yes (SVG, Vanilla JS) No Yes

📝 Advanced Features

1. Programmatic Attachments

Attach raw console stdout, logs, JSON objects, or custom screenshots directly to steps:

apmt.attach("Some text log content", name="Log Name")
apmt.attach('{"status": "success"}', name="API Output", attachment_type=apmt.AttachmentType.JSON)
apmt.attach_screenshot(page, name="Post-Login Screen")

2. Custom Environment Properties

Inject metadata dynamically in the header summary cards:

apmt.set_environment_info("Execution Mode", "Pytest Automation Suite")
apmt.set_environment_info("CI Build Run ID", "90123")

📈 Try the Repository Demo

To quickly see how exceptions, nested steps, and failure banners render, execute:

pytest demo/test_playwright_demo.py --apmt-html=demo_report.html

Metadata

Release files for apmt-reports 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apmt-reports 0.1.10
File Size Uploaded Provenance Actions
apmt_reports-0.1.10.tar.gz 95.3 kB Without provenance Details for apmt_reports-0.1.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apmt-reports 0.1.10
File Interpreter ABI Platform Actions
apmt_reports-0.1.10-py3-none-any.whl Python 3 none any Details for apmt_reports-0.1.10-py3-none-any.whl

Total release size: 191.2 kB

Release files / apmt_reports-0.1.10.tar.gz

Download URL apmt_reports-0.1.10.tar.gz
Size 95.3 kB
Tags Source
SHA-256 checksum
How to use checksums
874c2b0e930d64adc4a9349d92e33ba595809666178ba8bcd1a0612428b5a128
BLAKE2b-256 checksum
How to use checksums
51bfb6f26b578a91c11e6b39b271a6fee10afa3a9a41d0fea6f2148e341bac25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Release files / apmt_reports-0.1.10-py3-none-any.whl

Download URL apmt_reports-0.1.10-py3-none-any.whl
Size 95.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af445e4176fc565c94eb195a8891caeeb061809e53e921201ffb3f7a1ef679b1
BLAKE2b-256 checksum
How to use checksums
55d843796b11893ee3c9d1a58edb1f8d61d2f46242a2a10f1c7d08e91fc1123f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Security for apmt-reports 0.1.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page