Skip to main content

Maxtest Bridge - Python

Bridge package to integrate test results with Maxtest test management system.

Installation

pip install maxtest-bridge

Quick Start

CLI Usage

# Set environment variables
export MAXTEST_BASE_URL=https://maxtest.example.com
export MAXTEST_API_KEY=your-api-key

# Upload results
maxtest-upload --results-dir ./allure-results --launch-name "Nightly Run"

Programmatic Usage

from maxtest_bridge import upload_results

result = upload_results(
    results_dir="./allure-results",
    base_url="https://maxtest.example.com",
    api_key="your-api-key",
    launch_name="Regression Tests",
    environment="staging"
)

print(result)

Pytest Plugin

Install the package and enable the plugin:

# Run tests with automatic upload
pytest --maxtest-upload \
       --maxtest-launch-name "CI Pipeline" \
       --maxtest-environment "production"

Or configure in pytest.ini:

[pytest]
addopts = 
    --maxtest-upload
    --maxtest-launch-name "Automated Tests"

Configuration

Configuration can be provided via:

  1. Function arguments (highest priority)
  2. Environment variables
  3. CLI arguments

Environment Variables

Variable Description Required
MAXTEST_BASE_URL Base URL of Maxtest API Yes
MAXTEST_API_KEY API key for authentication Yes
MAXTEST_PROJECT_ID Project identifier No
MAXTEST_LAUNCH_NAME Test launch name No
MAXTEST_ENVIRONMENT Test environment (e.g., staging) No
MAXTEST_FAIL_ON_ERROR Fail pipeline on upload error (default: false) No

CLI Arguments

maxtest-upload \
  --results-dir ./allure-results \
  --base-url https://maxtest.example.com \
  --api-key your-api-key \
  --project-id my-project \
  --launch-name "Nightly Tests" \
  --environment staging \
  --fail-on-error \
  --timeout 60 \
  --verbose

Features

  • ✅ Framework Agnostic: Works with any test framework that generates allure-results
  • ✅ Cross-Platform: Works on Windows, Linux, and macOS
  • ✅ Pytest Integration: Optional plugin for automatic uploads
  • ✅ Configurable Error Handling: Choose whether upload failures should break the pipeline
  • ✅ Clean Code: Separation of concerns with dedicated modules
  • ✅ Type Safe: Full type hints with Pydantic validation

Error Handling

By default, upload failures will NOT break your CI/CD pipeline. This is intentional - your tests should pass/fail based on test results, not reporting issues.

To change this behavior:

# CLI
maxtest-upload --results-dir ./allure-results --fail-on-error

# Programmatic
upload_results(results_dir="./allure-results", fail_on_upload_error=True)

# Environment variable
export MAXTEST_FAIL_ON_ERROR=true

Development

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

# Run linting
black maxtest_bridge/
flake8 maxtest_bridge/
mypy maxtest_bridge/

License

MIT

Metadata

Release files for maxtest-bridge 0.1.7

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

Source distribution (sdist)

Source distribution for maxtest-bridge 0.1.7
File Size Uploaded Provenance Actions
maxtest_bridge-0.1.7.tar.gz 9.5 kB Without provenance Details for maxtest_bridge-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maxtest-bridge 0.1.7
File Interpreter ABI Platform Actions
maxtest_bridge-0.1.7-py3-none-any.whl Python 3 none any Details for maxtest_bridge-0.1.7-py3-none-any.whl

Total release size: 22.0 kB

Release files / maxtest_bridge-0.1.7.tar.gz

Download URL maxtest_bridge-0.1.7.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8f12b7c2fd953ef9e9f8118891982b8fcf1c37aa55973e8129d25c2a2f7342b6
BLAKE2b-256 checksum
How to use checksums
1c2f3d0dad7648af536e29e7c9789d7794a15235ad06d22ddac154f380db56c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / maxtest_bridge-0.1.7-py3-none-any.whl

Download URL maxtest_bridge-0.1.7-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ffc66df7b419503113060d43861aac7835915db94624c02eedc486203a02c89
BLAKE2b-256 checksum
How to use checksums
201c352fb0f18dbe1cc8b6f20031d9d2fbebd6d290c7de26f2283f1d5f9759f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for maxtest-bridge 0.1.7

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