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-1.2.1.tar.gz
(12.5 kB
view details)
File details
Details for the file htmlcmp-1.2.1.tar.gz.
File metadata
- Download URL: htmlcmp-1.2.1.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b32bf98372b82e0633a7d62f6fcc3be2ddaceca691f2bed67861ea802528d068
|
|
| MD5 |
313d54b13c45f5c5b3436282c8d1bf38
|
|
| BLAKE2b-256 |
335020348de8274d7f9dce5c7d5fc108164e901f38b528dbf2ab3c9e9c98d4b1
|
Provenance
The following attestation bundles were made for htmlcmp-1.2.1.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-1.2.1.tar.gz -
Subject digest:
b32bf98372b82e0633a7d62f6fcc3be2ddaceca691f2bed67861ea802528d068 - Sigstore transparency entry: 1006650433
- Sigstore integration time:
-
Permalink:
opendocument-app/compare-html@4bf87c9b6a4ce91750d34e454f3db76394ac7a81 -
Branch / Tag:
refs/tags/v1.2.1 - Owner: https://github.com/opendocument-app
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@4bf87c9b6a4ce91750d34e454f3db76394ac7a81 -
Trigger Event:
release
-
Statement type: