Skip to content

Commit 20926ea

Browse files
authored
Merge pull request #61141 from nextcloud/artonge/test/warn_about_slow_startup_time
test: Warn about slow startup time for phpunit tests
2 parents 782f3f7 + f2b91fc commit 20926ea

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

autotest.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,10 @@ function execute_tests {
385385
fi
386386

387387
COVER=''
388-
if [ -z "$NOCOVERAGE" ]; then
389-
COVER="--coverage-clover autotest-clover-$DB.xml --coverage-html coverage-html-$DB"
388+
if [ -z "$COVERAGE" ]; then
389+
echo "No coverage. Set COVERAGE=1 to enable it."
390390
else
391-
echo "No coverage"
391+
COVER="--coverage-clover autotest-clover-$DB.xml --coverage-html coverage-html-$DB"
392392
fi
393393

394394
echo "$PHPUNIT" --fail-on-warning --fail-on-risky --display-warnings --display-deprecations --display-phpunit-deprecations --colors=always --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"

0 commit comments

Comments
 (0)