Skip to content

Commit

Permalink
MDL-61689 phpunit: Be stricter about output during unit tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andrewnicols committed Mar 20, 2018
1 parent b63a3b0 commit 33dca94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -248,7 +248,7 @@ script:
- >
if [ "$TASK" = 'PHPUNIT' ];
then
vendor/bin/phpunit;
vendor/bin/phpunit --fail-on-risky --disallow-test-output --verbose;
fi
- >
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml.dist
Expand Up @@ -14,6 +14,7 @@
stopOnIncomplete="false"
stopOnSkipped="false"
beStrictAboutTestsThatDoNotTestAnything="false"
beStrictAboutOutputDuringTests="true"
printerClass="Hint_ResultPrinter"
testSuiteLoaderClass="phpunit_autoloader"
>
Expand Down

0 comments on commit 33dca94

Please sign in to comment.