nose2
nose2 copied to clipboard
Add optional colors for test results
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.
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 .
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.
It would be great! ;)
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.