docker run --env TEST_RUNNER_FRAMEWORK=S4 -v /path/to/your/application:/application phpvigo/php-test-runner:7.1
Your framework or application. Accepted values:
- S4: Symfony4 (default value)
- S3: Symfony3
- S2: Symfony2
- lavarel: Laravel5
- vendor: Other applications that have phpunit as composer require dev.
- global: Your test are writing extending a global installation of PHP Unit
Output the code coverage information. Accepted values:
- true
- false (default value)
Export the test stats in HTML. Accepted values:
- true
- false (default value)
The output folder is the test folder into the public path. The public path is detected automatically by the TEST_RUNNER_FRAMEWORK value. You can "force" a specific folder with the env var TEST_RUNNER_COVERAGE_HTML_PATH
You can set all environment vars into a .env.test file:
TEST_RUNNER_FRAMEWORK=S4
TEST_RUNNER_COVERAGE=true
TEST_RUNNER_COVERAGE_HTML=true
docker run --env TEST_RUNNER_FRAMEWORK=S4 -v /path/to/your/application:/application phpvigo/php-test-runner:7.1
docker run --env TEST_RUNNER_FRAMEWORK=S4 --env TEST_RUNNER_COVERAGE_HTML -v /path/to/your/application:/application phpvigo/php-test-runner:7.1
docker run --env-file ./env.test -v /path/to/your/application:/application phpvigo/php-test-runner:7.1