PHPUnit-Immediate-Printer
PHPUnit-Immediate-Printer copied to clipboard
🖨 Immediately prints exceptions and assertion failures during testing.
I get this error when trying to run Selenium test case with your reporter: ``` Error: Call to undefined method PHPUnit_Extensions_Selenium2TestCase_WebDriverException::getPreviousWrapped() in /opt/versionpress/vendor/scriptfusion/phpunit-immediate-exception-printer/src/Printer.php:159 Stack trace: #0 /opt/versionpress/vendor/scriptfusion/phpunit-immediate-exception-printer/src/Printer.php(103): ScriptFUSION\PHPUnitImmediateExceptionPrinter\PhpUnit5Printer->writeException(Object(PHPUnit_Extensions_Selenium2TestCase_WebDriverException)) #1 /opt/versionpress/vendor/scriptfusion/phpunit-immediate-exception-printer/src/PhpUnit5Printer.php(26):...
The output is pretty long and easily overlooked. An option to only output failed tests or tests that take a long time would be a good asset.
>PHP Fatal error: Uncaught Error: Call to undefined method PHPUnit_Framework_Error_Notice::getPreviousWrapped() in /scriptfusion/phpunit-immediate-exception-printer/src/Printer.php:159 Stack trace: #0 /scriptfusion/phpunit-immediate-exception-printer/src/Printer.php(103): ScriptFUSION\PHPUnitImmediateExceptionPrinter\PhpUnit5Printer->writeException(Object(PHPUnit_Framework_Error_Notice)) #1 /scriptfusion/phpunit-immediate-exception-printer/src/PhpUnit5Printer.php(26): ScriptFUSION\PHPUnitImmediateExceptionPrinter\PhpUnit5Printer->onEndTest(Object(), 0.99986386299133) #2 /phpunit/phpunit/src/Framework/TestResult.php(399): ScriptFUSION\PHPUnitImmediateExceptionPrinter\PhpUnit5Printer->endTest(Object(), 0.99986386299133) #3 /phpunit/phpunit/src/Framework/TestResult.php(889): PHPUnit_Framework_TestResult->endTest(Object( in /scriptfusion/phpunit-immediate-exception-printer/src/Printer.php...
The exception message output format is pretty bad because it intersects the exception type box if the message wraps. We should come up with better exception formatting design. Maybe copy...
After running the tests, a summary of tests that ran longer than a given amount of time would be nice.