pact-ruby icon indicating copy to clipboard operation
pact-ruby copied to clipboard

Do not use ANSI colours when printing to non interactive terminal

Open bethesque opened this issue 10 years ago • 1 comments

eg.

[31mActual interactions do not match expected interactions for mock Media Project Revenue.

bethesque avatar May 07 '14 06:05 bethesque

Reverting the following change in pact-support will fix this behaviour, but will cause some tests to fail in pact-ruby (as gha uses non interactive terminals)

https://github.com/pact-foundation/pact-support/commit/0585424a617c2aac5b0eb73ae6915087c70b3b00#diff-3df67314b1e956a19eebf4f7291abe158bf454c031522388ee504e7bd553cc2cR119

the new library we are using 'rainbow' will detect if dumb term or tty and disable colour codes from output

YOU54F avatar Aug 12 '24 14:08 YOU54F