23 lines
400 B
Bash
23 lines
400 B
Bash
#!/usr/bin/env bash
|
|
# commands/docker/test.command.sh
|
|
|
|
function cmd::docker::test::on_load() {
|
|
flag::register --debug
|
|
}
|
|
|
|
function cmd::docker::test::run() {
|
|
runtime::exec php vendor/bin/phpunit "$@"
|
|
}
|
|
|
|
function cmd::docker::test::help() {
|
|
cat <<EOF
|
|
Usage: dx test [args...]
|
|
|
|
Runs PHPUnit tests inside the app container.
|
|
|
|
Examples:
|
|
dx test
|
|
dx test --filter MyTest
|
|
dx test tests/unit
|
|
EOF
|
|
}
|