Skip to content

Trying to get coverage report #79

@pesseyjulien

Description

@pesseyjulien

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions