← Back to team overview

nunit-core team mailing list archive

[Bug 1170147] [NEW] Turning on /labels unexpectedly seems to turn on /nodots

 

Public bug reported:

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'.

** Affects: nunitv2
     Importance: Undecided
         Status: New


** Tags: labels nodots

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1170147

Title:
  Turning on /labels unexpectedly seems to turn on /nodots

Status in NUnit V2 Test Framework:
  New

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'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1170147/+subscriptions


Follow ups

References