From e5bda471666d19451289378a1c243daf122fa6bd Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 20 Aug 2016 15:46:43 +0200 Subject: run-tests.sh: Allow running single tests --state=hot,slow,all force all tests from the save file to be run even if they are not listed on the command line. Therefore they are dropped and replaced by failed which only pulls in tests that failed during the last run. -r and -o are replaced by their long text versions for clarity. Signed-off-by: Florian Pritz --- run-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run-tests.sh b/run-tests.sh index c429acc88..a83e8ea25 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -34,7 +34,8 @@ mkdir -p test-coverage-data # run tests phpdbg -qrr index.php tools drop_all_tables || exit 1 phpdbg -qrr index.php tools update_database || exit 1 -prove --ext .php --state=hot,slow,all,save --timer -o -e "phpdbg -qrr index.php tools test" -r "$@" application/test/tests/ || exit 1 + +prove --ext .php --state=failed,save --timer --comments --exec 'phpdbg -qrr index.php tools test' --recurse "${@:-application/test/tests/}" || exit 1 php index.php tools generate_coverage_report rm -rf test-coverage-data -- cgit v1.2.3-24-g4f1b