pytest-dev/pytest-html

[Feature Request] Aggregate by exception

Aberta

#195 aberto em 22 de jan. de 2019

 (7 comentários) (0 reação) (0 responsável)Python (253 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (770 estrelas)
Métricas de merge de PR
 (Mesclagem média 8h 28m) (9 fundiu PRs em 30d)

Description

I don't know if this is the right place to do this, but I'd love a way of aggregating failures by exception type, message, or error line. In a large codebase, a small change can generate a cascade of failures that actually are only down to errors in one or two places. It would be really helpful to be able to see that although 50 tests failed, 40 of them were from a db connectivity error and the other 10 arose from the same error in a utility function.

The alternative would be to tackle it at the CLI level, but I like the idea of being able to dynamically aggregate by different views to work out what's going on.

Happy to aid in the development if this would be a welcome feature.

Guia do colaborador