This image holds a compiled HTMLTest binary.
It is build to: https://hub.docker.com/r/brutus/htmltest.
docker run --rm brutus/htmltest --help
The entry point is /bin/htmltest
, the working directory /var/www
.
You can see https://github.com/wjdp/htmltest#wrench-configuration for more.
The default configuration is read from .htmltest.yml
if available, .e.g.:
# .htmltest.yml
DirectoryPath: public
CheckExternal: true
CheckFavicon: true
EnforceHTML5: true
EnforceHTTPS: true
IgnoreInternalEmptyHash: true
Check HTML files in a ./public/
directory, ignoring checks for external stuff:
docker run --rm \
--volume "$(pwd)":/var/www \
brutus/htmltest --skip-external public
You can also run this from a CI, e.g. for Gitlab use the alpine
tag:
test-html:
stage: test
image:
name: brutus/htmltest:alpine
entrypoint: [""]
script:
- /bin/htmltest