Trying to get coverage report

Open
#79 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
api, testing

Research direction

Start with the coverage command and the api.suite.yml configuration, then compare the REST module's send() usage with the Codeception code coverage documentation and the installed c3.php setup. Reproduce the reported failure using bin/codecept run --coverage --coverage-xml --coverage-html and determine which configuration or integration prevents the report from being generated.

Written by the indexing model from the issue text.

Description

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 :
Capture d’écran 2022-04-05 à 19 35 42

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

Dominant language
PHP
Stars
60
Forks
29
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Codeception/module-rest

All issues in Codeception/module-rest

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.