stretchr/testify

Colorize "expected" and "actual"

Open

#946 aperta il 13 mag 2020

Vedi su GitHub
 (8 commenti) (45 reazioni) (0 assegnatari)Go (1704 fork)batch import
enhancementenhancement: colored outputhelp wanted

Metriche repository

Star
 (25.958 star)
Metriche merge PR
 (Merge medio 6g 15h) (2 PR mergiate in 30 g)

Descrizione

Can we have an option to colorize "expected" and "actual" in test output? Like this: Screenshot from 2020-05-13 18-27-59

0_ZTerrO_akuDWSV8h

For me the colors helps because it allows me to locate the diff faster. This kind of coloring is very common in Node.js test frameworks.

Guida contributor