This was easy to fix. There was an error in the path when including c3.php from index.php. The Apache error log made this clear.
Codeception code coverage - file_get_contents exception (c3/report/clear)
-
29-06-2022 - |
Question
I'm using Codeception with Laravel 4. In particular I'm trying to use remote code coverage so that I can include acceptance testing in the code coverage results.
XDebug with remote_enable are configured, and c3.php is installed and included in 'public/index.php'.
On Windows everything works as expected. But on Ubuntu 12.04 LTS (with PHP5.4) I get this exception:
[ErrorException] file_get_contents(http://localhost/c3/report/clear):
failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
What am I doing wrong?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow