avajs/ava

Log test duration for serial tests only

Open

#1668 aperta il 29 gen 2018

Vedi su GitHub
 (20 commenti) (0 reazioni) (0 assegnatari)JavaScript (1408 fork)batch import
enhancementhelp wantedscope:internalsscope:reporters

Metriche repository

Star
 (20.600 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor