Skip to main content

A professional tool to merge multiple pytest-html reports into a single one with consistent metadata

Project description

pgpro-pytest-html-merger

A professional tool to merge multiple pytest-html reports into a single, consistent HTML report. Developed and maintained by Postgres Professional.

Key Features

  • Smart Merging: Combines test results, logs, and metadata from multiple sources.
  • Flexible Input: Supports individual files and entire directories.
  • Customizable: Set your own report title and output filename.
  • Modern Support: Fully compatible with Python 3.8 through 3.14.

Installation

You can install the package directly from the repository (until it's published to PyPI):

pip install pgpro-pytest-html-merger

Usage

After installation, the tool is available via the pgpro-pytest-html-merger command.

Basic Examples

Merge all reports in a directory:

pgpro-pytest-html-merger -i ./reports -o summary.html

Merge specific files with a custom title:

pgpro-pytest-html-merger report1.html report2.html -o final.html --title "Nightly Build"

Combine directories and individual files:

pgpro-pytest-html-merger -i ./unit-tests -i ./e2e-tests extra-report.html -o full-report.html

Command Line Arguments

Argument Shorthand Description Default
--input-dir -i Directory containing HTML reports (can be used multiple times) None
--out -o Name of the output HTML report merged.html
--title -t Title of the output HTML report None
--verbose -v Level of logging verbosity 3
html_files Positional arguments for individual HTML files None

Contributing

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/amazing-feature).
  3. Commit your changes (git commit -m 'feat: add some amazing feature').
  4. Push to the branch (git push origin feature/amazing-feature).
  5. Open a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

© 2026 Postgres Professional

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgpro_pytest_html_merger-0.2.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pgpro_pytest_html_merger-0.2.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file pgpro_pytest_html_merger-0.2.0.tar.gz.

File metadata

  • Download URL: pgpro_pytest_html_merger-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pgpro_pytest_html_merger-0.2.0.tar.gz
Algorithm Hash digest
SHA256 368697f3a21878f580915f39d2a37e48c511be10c86c97d30c8924ca6541567a
MD5 fb875cdcbad73d5debee39d42c448718
BLAKE2b-256 0143108c61e099b7f7a823464c72ebcca4fb5dd6375ccbb2717c76acb588fe63

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgpro_pytest_html_merger-0.2.0.tar.gz:

Publisher: python-publish.yml on dmitry-lipetsk-workspace/pgpro-pytest-html-merger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgpro_pytest_html_merger-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pgpro_pytest_html_merger-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ee60e71009835dd5cf4aba50a35e7a0d2efeb1cbd3da4360e6b52f0534bbd86
MD5 7ab5e9cb1ac4547dc85594109c41ce94
BLAKE2b-256 a24313a13258efadeb48c5d059be60bd6cf06991e451e2e02258b5bff7331c64

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgpro_pytest_html_merger-0.2.0-py3-none-any.whl:

Publisher: python-publish.yml on dmitry-lipetsk-workspace/pgpro-pytest-html-merger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page