MDL-61689 phpunit: Be stricter about output during unit tests

This change also add fail-on-risky to travis to help pick these up, and
verbosity too.

We only fail on risky during Travis and not during normal output because
developers may want to debug tests.
This commit is contained in:
Andrew Nicols
2018-03-20 08:33:13 +08:00
parent e95f91c90a
commit 8269544f2f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ script:
- >
if [ "$TASK" = 'PHPUNIT' ];
then
vendor/bin/phpunit;
vendor/bin/phpunit --fail-on-risky --disallow-test-output --verbose;
fi
- >
+1
View File
@@ -13,6 +13,7 @@
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
beStrictAboutOutputDuringTests="true"
printerClass="Hint_ResultPrinter"
testSuiteLoaderClass="phpunit_autoloader"
>