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 |
|---|---|---|---|
--version |
Show program's version number and exit | None | |
--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
- Fork the repository.
- Create your feature branch (
git checkout -b feature/amazing-feature). - Commit your changes (
git commit -m 'feat: add some amazing feature'). - Push to the branch (
git push origin feature/amazing-feature). - Open a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
© 2026 Postgres Professional
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pgpro_pytest_html_merger-0.4.0.tar.gz.
File metadata
- Download URL: pgpro_pytest_html_merger-0.4.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
760d825f1f7015af313024794a962e6dececf82d6d4970c20da6c4b3a2c751af
|
|
| MD5 |
825b9741ccc3560c028402f686540b0e
|
|
| BLAKE2b-256 |
8d0244f89c5ac3043d97560b4c86169b596080afb4de2ed7faa52e47eb4be44d
|
Provenance
The following attestation bundles were made for pgpro_pytest_html_merger-0.4.0.tar.gz:
Publisher:
python-publish.yml on postgrespro/pgpro-pytest-html-merger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgpro_pytest_html_merger-0.4.0.tar.gz -
Subject digest:
760d825f1f7015af313024794a962e6dececf82d6d4970c20da6c4b3a2c751af - Sigstore transparency entry: 1520613059
- Sigstore integration time:
-
Permalink:
postgrespro/pgpro-pytest-html-merger@e4aa9d5c3d76a81746da483d5bc5fb345c04e042 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/postgrespro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e4aa9d5c3d76a81746da483d5bc5fb345c04e042 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pgpro_pytest_html_merger-0.4.0-py3-none-any.whl.
File metadata
- Download URL: pgpro_pytest_html_merger-0.4.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8043a770afadd67da8e02d907b7228163e9b5b0c9a14056dad7514d594d85164
|
|
| MD5 |
24077dd6d910e581eb0fab94003f9557
|
|
| BLAKE2b-256 |
0a694b4765ad66778266220b98bec1ff40cd37445bf7a663e2e0a34bdec5ab4c
|
Provenance
The following attestation bundles were made for pgpro_pytest_html_merger-0.4.0-py3-none-any.whl:
Publisher:
python-publish.yml on postgrespro/pgpro-pytest-html-merger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pgpro_pytest_html_merger-0.4.0-py3-none-any.whl -
Subject digest:
8043a770afadd67da8e02d907b7228163e9b5b0c9a14056dad7514d594d85164 - Sigstore transparency entry: 1520613075
- Sigstore integration time:
-
Permalink:
postgrespro/pgpro-pytest-html-merger@e4aa9d5c3d76a81746da483d5bc5fb345c04e042 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/postgrespro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@e4aa9d5c3d76a81746da483d5bc5fb345c04e042 -
Trigger Event:
release
-
Statement type: