Search code examples
phpcode-coverageremote-servercodeception

How to setup Codeception with remote code coverage?


  • I have two repo on my machine
    1. API
    2. Codeception repo that tests API

In API repo I have added codeception+c3

"require-dev": {
    "codeception/codeception": "2.*",
    "codeception/c3": "2.*",

I've also included c3.php inside index.php, but when trying to test it with --coverage I have this error

[PHPUnit_Framework_Exception] file_get_contents(http://local.api.codeception.com/c3/report/clear): fai led to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

Is there ANY online example of remote codecoverage with Codeception?


Solution

  • Ok, it was a configuration nightmare, but I've fixed it

    Here is example