Turning on /labels unexpectedly seems to turn on /nodots

Bug #1170147 reported by Syed Salman Qadri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nunit-console
Triaged
Wishlist
Unassigned

Bug Description

I am using /out: to output my logs to a file. However, those logs are incomprehensible as I cannot know which test is outputting them. So I have to turn on /labels which solves the problem. Unfortunately, as soon as I turn on /labels, nunit stops putting dots, as if we have the /nodots option set, which I do not. The result is that, since our tests are so long, it seems as if nothing is happening, but if I open the log file it is being updated. I want to have /labels without getting rid of the dots.

Looking at the code, the problem seems to be in ConsoleRunner/nunit-console/EventCollector.cs. In the constructor you are doing:

this.progress = !options.xmlConsole && !options.labels && !options.nodots;

This is incorrect, and should be changed to:

this.progress = !options.xmlConsole && !options.nodots;

If someone doesn't want the dots, they should explicitly set '/nodots'.

Tags: labels nodots
Changed in nunitv2:
status: New → Triaged
importance: Undecided → Wishlist
affects: nunitv2 → 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.