mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-12-03 17:28:20 +01:00
1.0 KiB
1.0 KiB
letsencrypt-nginx-proxy-companion test suite
The test suite can be run locally on a Linux host.
To prepare the test setup:
git clone https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion.git
cd docker-letsencrypt-nginx-proxy-companion
test/setup/setup-local.sh --setup
Then build the docker image and run the tests:
docker build -t jrcs/letsencrypt_nginx_proxy_companion .
test/run.sh jrcs/letsencrypt_nginx_proxy_companion
You can limit the test run to specific test(s) with the -t
flag:
test/run.sh -t docker_api jrcs/letsencrypt_nginx_proxy_companion
When running the test suite, the standard output of each individual test is captured and compared to its expected-std-out.txt file. When developing or modifying a test, you can use the --dry-run
flag to disable the standard output capture by the test suite.
test/run.sh --dry-run jrcs/letsencrypt_nginx_proxy_companion
To remove the test setup:
test/setup/setup-local.sh --teardown