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.
pip install htmlcmpdocker pull ghcr.io/opendocument-app/odr_core_testdocker 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 8000docker build --tag odr_core_test test/dockerPYTHONPATH=$(pwd)/src:$PYTHONPATH python ./src/htmlcmp/compare_output_server.py \
/path/to/REFERENCE \
/path/to/MONITORED \
--compare \
--driver firefox \
--port 8000 \
-vv