Tool to compare (generated) HTML files visually and automatically using Selenium.
Provides various entry points to run:
compare-html
is a CLI tool to compare two directory structures containing HTML filescompare-html-server
starts a webserver and allows to inspect differences manuallyhtml-render-diff
renders two HTML files and produces imageshtml-tidy
allows to run HTML tidy on a directory
Used for regression testing in https://github.com/opendocument-app/OpenDocument.core.
pip install htmlcmp
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
docker build --tag odr_core_test test/docker