Codeception / Codeception/module-rest

Trying to get coverage report

Ouverte
#79 1 commentaire 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
PHP
Étoiles
60
Forks
30
Merge moyen
22 h 37 min
PR mergées (30 j)
1

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](https://user-images.githubusercontent.com/10850944/161816574-69374ca0-4fc5-4174-9bea-8b8fb70dc389.jpg)

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.