Compare HTML files by rendered output
Project description
htmlcmp
Tool to compare (generated) HTML files visually and automatically using Selenium.
Provides various entry points to run:
compare-htmlis a CLI tool to compare two directory structures containing HTML filescompare-html-serverstarts a webserver and allows to inspect differences manuallyhtml-render-diffrenders two HTML files and produces imageshtml-tidyallows to run HTML tidy on a directory
Used for regression testing in https://github.com/opendocument-app/OpenDocument.core.
Install via PyPI
pip install htmlcmp
Download and run the docker image
docker pull ghcr.io/opendocument-app/odr_core_test
docker run -ti \
-v $(pwd):/repo \
-p 8000:8000 \
ghcr.io/opendocument-app/odr_core_test \
compare-html-server /repo/REFERENCE /repo/MONITORED --compare --driver firefox --port 8000
Manually build the docker image
docker build --tag odr_core_test test/docker
Run locally
PYTHONPATH=$(pwd)/src:$PYTHONPATH python ./src/htmlcmp/compare_output_server.py \
/path/to/REFERENCE \
/path/to/MONITORED \
--compare \
--driver firefox \
--port 8000 \
-vv
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
htmlcmp-2.0.0.tar.gz
(17.1 kB
view details)
File details
Details for the file htmlcmp-2.0.0.tar.gz.
File metadata
- Download URL: htmlcmp-2.0.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30da0e6148ad82d1329b97c771a00d1cbcd0063ffe64ce5eb4d627a01b332d94
|
|
| MD5 |
eb24e03218e12d510b39b9da66ae23d3
|
|
| BLAKE2b-256 |
cb43a1113ba3f49e05eb2158abc2f9255e7c7bcb9d0197b1ed4433cfdd2d35f3
|
Provenance
The following attestation bundles were made for htmlcmp-2.0.0.tar.gz:
Publisher:
pypi.yaml on opendocument-app/compare-html
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
htmlcmp-2.0.0.tar.gz -
Subject digest:
30da0e6148ad82d1329b97c771a00d1cbcd0063ffe64ce5eb4d627a01b332d94 - Sigstore transparency entry: 2072579115
- Sigstore integration time:
-
Permalink:
opendocument-app/compare-html@4f398d2c0d503680219bb3f154e9d5bb9d098fd9 -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/opendocument-app
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@4f398d2c0d503680219bb3f154e9d5bb9d098fd9 -
Trigger Event:
release
-
Statement type: