Feature: add diff_cover?

Abierto
#600 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
testing-qa

Línea de trabajo

The proposal centers on pytest --cov and a term-diff coverage report, but no repository files or tests are identified. Start by examining pytest-cov's plugin integration and how coverage report options are registered; done would mean a supported diff_cover report works through the pytest-cov command-line interface with tests covering the behavior.

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

Descripción

I'm wondering if you've considered (or would consider a PR) implementing support for diff_cover?

I'm thinking something like pytest --cov --cov-report=term-diff, which would essentially run diff_cover and add it to the report? I took a stab at implementing this as an independent pytest plugin (that would in turn use pytest-cov), but found that it was rather difficult (and probably bad form) to essentially modify the pytest-cov plugin instance to achieve this.

I'm happy to open PR trying to implement this, but wanted to gauge interest first. thanks!

Lenguaje dominante
Python
Estrellas
2.1k
Forks
253
Merge medio
6 d 10 min
PR fusionados (30 d)
2

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pytest-dev/pytest-cov

Todos los issues de pytest-dev/pytest-cov

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.