Add test-until-fail script htat will loop tests on /all-components until it finds an error from webhint

This commit is contained in:
Kuba Orlik 2024-05-05 22:20:39 +02:00
parent bec96ac604
commit be61e36cc0

9
test-until-fail.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
cd webhint
while true; do
wget localhost:8080/all-components --output-document ./output.html
npx hint --config ../hintrc.local.json ./output.html
if [ "$?" != 0 ]; then
exit 1;
fi;
done