nose2 icon indicating copy to clipboard operation
nose2 copied to clipboard

Add optional colors for test results

Open thedrow opened this issue 10 years ago • 3 comments

This feature should detect if Colorama is installed, if it is it should colorize the test results by default. There will be a reporter configuration option to disable colorizing completely. There will be configuration options that will allow to assign different colors for each test result. By default the following colors will be used:

  • Passed - Green.
  • Failed - Red.
  • Error - Bold Red.
  • Skipped - Yellow.
  • Expected Failure - Dim Red.
  • Unexpected Success - Dim Green.
  • Other Outcome - Cyan. To ensure terminal colors are supported on windows Colorama should be used. The Colorama dependency should be specified in the setup's extra_requires.

thedrow avatar Jul 18 '13 21:07 thedrow

Should this and pretty printing tracebacks be options for the default reporter plugin, or (after we fix the reporter event and hooks) a second built-in reporter plugin?

On Thu, Jul 18, 2013 at 5:21 PM, Omer Katz [email protected] wrote:

This feature should detect if Colorama is installed, if it is it should colorize the test results by default. There will be a reporter configuration option to disable colorizing completely. There will be configuration options that will allow to assign different colors for each test result. By default the following colors will be used:

  • Passed - Green.
  • Failed - Red.
  • Error - Bold Red.
  • Skipped - Yellow.
  • Expected Failure - Dim Red.
  • Unexpected Success - Dim Green.
  • Other Outcome - Cyan. To ensure terminal colors are supported on windows Colorama should be used. The Colorama dependency should be specified in the setup's extra_requires.

— Reply to this email directly or view it on GitHubhttps://github.com/nose-devs/nose2/issues/104 .

jpellerin avatar Jul 19 '13 13:07 jpellerin

I think that we should implement these with the current reporter and move them to another plug-in when we'll reach 1.0.0.

thedrow avatar Jul 19 '13 22:07 thedrow

It would be great! ;)

marek-mazur avatar Oct 15 '14 15:10 marek-mazur

Given the current support/maintenance status of nose2, I don't think it's likely that I will work on this feature. It would still be accepted if someone wanted to contribute a PR, but until then, I'm closing as unplanned.

sirosen avatar Oct 13 '23 21:10 sirosen