stretchr/testify

Colorize "expected" and "actual"

Open

#946 ouverte le 13 mai 2020

Voir sur GitHub
 (8 commentaires) (45 réactions) (0 assignés)Go (1 704 forks)batch import
enhancementenhancement: colored outputhelp wanted

Métriques du dépôt

Stars
 (25 958 stars)
Métriques de merge PR
 (Merge moyen 6j 15h) (2 PRs mergées en 30 j)

Description

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.

Guide contributeur