You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ phpunit --coverage-html /does-not-exist
PHPUnit 4.8.16-1-g54ee96a by Sebastian Bergmann and contributors.
Runtime: PHP 5.6.15 with Xdebug 2.3.3
Configuration: /usr/local/src/money/build/phpunit.xml
.............................................
Time: 794 ms, Memory: 13.00Mb
OK (45 tests, 71 assertions)
Generating code coverage report in Clover XML format ... done
Generating Crap4J report XML file ... done
Generating code coverage report in HTML format ...PHP Fatal error: Uncaught exception 'PHP_CodeCoverage_Exception' with message 'Directory "/does-not-exist/" does not exist.' in /usr/local/src/phpunit/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php:175
Stack trace:
#0 /usr/local/src/phpunit/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php(67): PHP_CodeCoverage_Report_HTML->getDirectory('/does-not-exist')
#1 /usr/local/src/phpunit/src/TextUI/TestRunner.php(488): PHP_CodeCoverage_Report_HTML->process(Object(PHP_CodeCoverage), '/does-not-exist')
#2 /usr/local/src/phpunit/src/TextUI/Command.php(149): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)
#3 /usr/local/src/phpunit/src/TextUI/Command.php(100): PHPUnit_TextUI_Command->run(Array, true)
#4 /usr/local/src/phpunit/phpunit(47): PHPUnit_TextUI_Command::main()
#5 {main}
thrown in /usr/local/src/phpunit/vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/HTML.php on line 175
$ phpunit --coverage-html /does-not-exist
PHPUnit 4.8.16-1-g54ee96a by Sebastian Bergmann and contributors.
Runtime: PHP 5.6.15 with Xdebug 2.3.3
Configuration: /usr/local/src/money/build/phpunit.xml
.............................................
Time: 797 ms, Memory: 13.25Mb
OK (45 tests, 71 assertions)
Generating code coverage report in Clover XML format ... done
Generating Crap4J report XML file ... done
Generating code coverage report in HTML format ... failed
Directory "/does-not-exist/" does not exist.
Generating code coverage report in PHPUnit XML format ... done
Expected
$ phpunit --coverage-html /does-not-exist
PHPUnit 4.8.16-1-g54ee96a by Sebastian Bergmann and contributors.
Runtime: PHP 5.6.15 with Xdebug 2.3.3
Configuration: /usr/local/src/money/build/phpunit.xml
.............................................
Time: 797 ms, Memory: 13.25Mb
OK (45 tests, 71 assertions)
Generating code coverage report in Clover XML format ... done
Generating Crap4J report XML file ... done
Generating code coverage report in HTML format ... failed
Directory "/does-not-exist/" does not exist.
Generating code coverage report in PHPUnit XML format ... done
The text was updated successfully, but these errors were encountered:
Actual
Expected
The text was updated successfully, but these errors were encountered: