Skip to content

rimi-itk/qualweb-tests

Repository files navigation

QualWeb tests

https://github.com/qualweb

QualWeb CLI: https://github.com/qualweb/cli#qualweb-cli

docker compose pull
docker compose up --build --detach

Generate aggregated EARL Report reports/localhost.earl-a.json for the urls listed in test/test.urls:

docker compose run --rm qualweb qw --report-type earl-a --save-name reports/localhost.earl-a.json --file test/test.urls

Render report in a concise text format:

docker compose run --rm qualweb earl2txt reports/localhost.earl-a.json

Access site running on docker host (service nginx exposed on port 8080):

docker compose run --rm qualweb qw --report-type earl-a --save-name reports/localhost.earl-a.json --url "http://host.docker.internal:$(docker compose port nginx 8080 | cut -d: -f2)"

Report overview

Get URL and metadata for all reports (http*.json):

for f in http*.json; do docker run --rm --interactive efrecon/jq:1.7 '{completeUrl: .system.url.completeUrl, uri: .system.url.uri, metadata: .metadata}' < $f; done

Set exit status to 1 if a test has failed:

./bin/check http*.json; echo $?
$(for f in http*.json; do docker run --rm --interactive efrecon/jq:1.7 --exit-status '.metadata.failed == 0' < $f || exit 1; done); echo $?

Coding standards

npm run coding-standards-check
npm run coding-standards-apply

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published