Skip to content

Zelos Report Plugin for pytest

The Zelos Report plugin is a pytest plugin that automatically configures HTML test reports for your test runs. It integrates with pytest-html to generate clean, self-contained HTML reports of your test results.

Installation

The plugin is part of the zelos_sdk package.

Usage

To use the report plugin, add it to your pytest_plugins in your conftest.py:

pytest_plugins = ["zelos_sdk.pytest.report"]

Features

  • Automatic HTML Report Generation: The plugin automatically configures and generates HTML reports.
  • Self-contained Reports: All reports are generated as self-contained HTML files, making them easy to share and view.

Configuration

The plugin requires the Config Plugin:

  1. A configured zelos_local_artifacts_dir in your pytest configuration
  2. The pytest-html plugin to be installed and registered

The report will be saved to your artifacts directory with the name format: {artifact_basename}-report.html

Example

If your configuration has: - zelos_local_artifacts_dir set to /path/to/artifacts

The report will be generated at: /path/to/artifacts/20250101-123456-report.html

Customization

Coming soon