Trying to get coverage report
Hi,
It seems that using the Rest module with Phpbrowser does not work for 'coverage'
Example running bin/codecept run --coverage --coverage-xml --coverage-html :

Here is the config of api.suite.yml :
class_name: ApiTester
coverage:
enabled: true
remote: true
remote_context_options:
http:
timeout: 60
ssl:
verify_peer: false
modules:
enabled:
- Asserts
- Symfony:
kernel_class: App\Kernel
app_path: 'src'
environment: 'test'
- REST:
depends: PhpBrowser
- Doctrine2:
depends: Symfony
cleanup: true
We are mainly using the send() method of the ApiTesterActions.
We followed the doc here : https://codeception.com/docs/11-Codecoverage
We also followed the instructions to installed the c3.php file (https://github.com/Codeception/c3)
What are we missing ?
Thanks in advance for your help, Julien
I think that you missed Remote CodeCoverage reports are not printed to console message at the bottom of your screenshot.
XML and HTML reports are saved to tests/_output directory.
HTML to tests/_output/api.remote.coverage directory,
XML to tests/_output/api.remote.coverage.xml file.
Output could be improved, this result was unexpected to me as well.