Skip to content

Latest commit

 

History

History
64 lines (34 loc) · 1.38 KB

qa.md

File metadata and controls

64 lines (34 loc) · 1.38 KB

QA

Run the following commands from a by starting the test-stack and running a bash in the tester container

make TEST up setup
make TEST bash

Linkchecker

$ linkchecker http://WEB -r 3

Sitemap

$ linkchecker http://WEB --threads 2 --file-output sitemap -o none

"Warm caches"

⚠️ Be careful with these commands, they may generate a lot of load on your server.

docker run phundament/php-one:5.6 linkchecker -t 5 -r 1 http://www.my-app.com/
docker run phundament/php-one:5.6 linkchecker -t 4 -r 1 http://www.my-app.com/products
docker run phundament/php-one:5.6 linkchecker -t 2 -r 2 http://www.my-app.com/

HTML-Validator

validator:
  image: magnetikonline/html5validator
  entrypoint: ["java", "-jar", "/root/build/validator.nu/vnu.jar"]
  links:
    - nginx:WEB

Index page

docker-compose run validator http://WEB/en

Login page

docker-compose run validator http://WEB/en

From bash in validator

$ java -jar validator.nu/vnu.jar

Lint

https://github.com/redcoolbeans/dockerlint

docker run -it --rm -v "$PWD/$(DOCKERFILE)":/Dockerfile:ro redcoolbeans/dockerlint

https://github.com/projectatomic/dockerfile_lint

docker run -it --rm --privileged -v `pwd`:/root/ projectatomic/dockerfile-lint dockerfile_lint -f $(DOCKERFILE)