It appears that test-unit guesses whether the terminal supports color by (mainly) looking at the TERM environment variable. Unfortunately, screen-256color
does not satisfy the checks that it makes.
It might be reasonable to ask that its recognition of screen
be extended to include screen-256color
, also.
I think you can drop some entries in a configuration file to supply default arguments. The first of test-unit.yml
(in the current directory) or ~/.test-unit.yml
(a “hidden” file in your home directory) will be loaded:
runner: console
console_options:
arguments: --use-color=yes