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