Codeception / Codeception/module-rest

Trying to get coverage report

Aperta
#79 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
60
Fork
30
Merge medio
22h 37m
PR unite (30g)
1

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.