avajs/ava

Log test duration for serial tests only

Open

#1.668 aberto em 29 de jan. de 2018

Ver no GitHub
 (20 comments) (0 reactions) (0 assignees)JavaScript (1.408 forks)batch import
enhancementhelp wantedscope:internalsscope:reporters

Métricas do repositório

Stars
 (20.600 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

I'm thinking of revisiting #971, but with a twist.

Reporting test duration when tests run concurrently can be misleading, since slow, synchronous code in one test also slows down another. This is why I've been hesitant of exposing the duration numbers in the TAP reporter.

Oddly though we do show durations in the verbose reporter! This has survived all the way from #30.

I wonder if we should only show durations when --serial is used. This way the numbers will be more accurate and users will be less tempted to fix one "slow" test while the problem is another. We can then also include it in the TAP output.

Guia do colaborador