nunit-console: ColorConsoleWriter.WriteLabel causes NullReferenceException

I’ve gotten this 7 times out of the last 9 builds on the build server at work. The only thing that should have changed from last night is that there’s a lot more parallelization going on. Oh, also I updated to NUnit Framework 3.8.0, duh…

Run Settings
    DisposeRunners: True
    WorkDirectory: [redacted]
    TestParametersDictionary: System.NullReferenceException: Object reference not set to an instance of an object.
   at NUnit.ConsoleRunner.ColorConsoleWriter.WriteLabel(String label, Object option, ColorStyle valueStyle)
   at NUnit.ConsoleRunner.ColorConsoleWriter.WriteLabelLine(String label, Object option, ColorStyle valueStyle)
   at NUnit.ConsoleRunner.ResultReporter.WriteRunSettingsReport()
   at NUnit.ConsoleRunner.ResultReporter.ReportResults()
   at NUnit.ConsoleRunner.ConsoleRunner.RunTests(TestPackage package, TestFilter filter)
   at NUnit.ConsoleRunner.Program.Main(String[] args)

Fails with error -100.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (12 by maintainers)

Most upvoted comments

@ChrisMaddock I’ve only written the “production-code” (and performed manual testing), so I also need to implement some tests, so you can keep this issue 😄 .

Go ahead and take it.

On Dec 12, 2017 7:55 AM, “Chris Maddock” notifications@github.com wrote:

@rprouse https://github.com/rprouse - did you make a start on this in the end? I’d like to get it in for the next console release - I can take it if you prefer? 🙂

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nunit/nunit-console/issues/285#issuecomment-351043192, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeJBKyEGk7OwDzMLRxCv4x9-0xeNLS9ks5s_nepgaJpZM4PE9ba .