Feature to customize the console output font text and color..

Bug #1065323 reported by Sirus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nunit-console
Triaged
Wishlist
Unassigned

Bug Description

In my test suite, I have 100 of tests cases which I want to iterate until the end. However with the current feature, Assert.fail feature for invalid tests, it fails the tests and stops the Nunit tests. I want to fail the tests but still continue until last test case is executed.

Currently in my test suite, i have programmed such a way that it prints "Error for test case 10" in NUnit test output screen for invalid tests cases which is working fine. However if i have 100 tests, it's very hard to track from the failed test cases as there are 100 line of text output. If there would be feature to customize the text for font color or font size then I would be able to program the error text output as red color which is easily identifiable in Nunit Console Output.

To add on that, it would be very nice if the test runner status would say fail and red colored for output error statements just like assert.fail.

Thanks,

Sirus

Changed in nunitv2:
status: New → Triaged
importance: Undecided → Wishlist
affects: nunitv2 → nunit-3.0
Revision history for this message
Charlie Poole (charlie.poole) wrote :

I moved the bug to nunit-3.0, because we're limiting new features in the 2.6 series.

However, reading it more closely than I did on the discussion list, I see you want to have the ability to inject color selectively in your own messages. This is already supported in the console, provided you are running on a system that recognizes ansi escape sequences embedded in console output, such as most unix-based systems. On MsDos, this used to be done by loading a special console driver. I'm not sure what's available in the Windows environment these days.

One problem with this approach is that you need to be sure that you'll be running the tests only on systems that support it.

We'll plan to implement this in 3.0 for our own output, using different implementations for Windows and Linux/Unix. Getting special colors within user messages will still require some work on the user's part.

tags: added: console
tags: removed: console
affects: nunit-3.0 → nunit-console
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.