Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Source code file reference cannot be extracted from non-English stacktrace #106

@dgrunwald

Description

@dgrunwald

SD-1274, originally created on 1/17/2007 19:06:02 by Matt Ward

The OutputTextLineParser class, method GetNUnitOutputFileLineReference,
only supports English stack traces. The regex used has english words
"in" and "line".

Using Reflector we see that the .NET Framework stack trace class uses:

      string text1 = "at";
      string text2 = "in {0}:line {1}";
      if (traceFormat != StackTrace.TraceFormat.NoResourceLookup)
      {
            text1 = Environment.GetResourceString("Word_At");
            text2 =
Environment.GetResourceString("StackTrace_InFileLineNumber");
      }

Environment.GetResourceString is an internal method. So either we use
reflection, or add some new resource strings, or try and relax the regex
and remove the english words.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions