Codeception / Codeception/module-rest

Trying to get coverage report

Abierto
#79 1 comentario 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
60
Forks
30
Merge medio
22 h 37 min
PR fusionados (30 d)
1

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
php
Área
api, testing
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.