Print logs generated during unit test when test fails
authorErik Bernhardson <ebernhardson@wikimedia.org>
Fri, 18 Jan 2019 23:28:26 +0000 (15:28 -0800)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 6 Feb 2019 22:43:32 +0000 (14:43 -0800)
commit56ffbc2a4e3ade907b050119d03c2d527f860868
tree2a1281c116b1329350b7ee2a9de273c3e6c7c119
parentb02d72f7adebb7712476283e6fa68ad61ea00e15
Print logs generated during unit test when test fails

When a unit test fails it is possible, perhaps even likely in some
cases, that some code that was run logged useful information about
how that failure came to be.

Help people out, tell them what happened!

Change-Id: I30bbc31799a65024868678d052fec9aafacc1aff
autoload.php
includes/debug/logger/LogCapturingSpi.php [new file with mode: 0644]
tests/common/TestsAutoLoader.php
tests/phpunit/MediaWikiLoggerPHPUnitTestListener.php [new file with mode: 0644]
tests/phpunit/MediaWikiPHPUnitCommand.php
tests/phpunit/MediaWikiPHPUnitResultPrinter.php [new file with mode: 0644]
tests/phpunit/MediaWikiTestCase.php