Skip to content

Commit

Permalink
2.0 Revert to old regex to fix GB18030 test case discovery regression
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidARaygoza committed Aug 12, 2024
1 parent fe35d95 commit ae6c282
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GoogleTestAdapter/Core/TestCases/StreamingListTestsParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ namespace GoogleTestAdapter.TestCases

public class StreamingListTestsParser
{
private static readonly Regex SuiteRegex = new Regex($@"([\w\/]*(?:\.[\w\/]+)*)(?:{Regex.Escape(GoogleTestConstants.TypedTestMarker)}(.*))?", RegexOptions.Compiled);
private static readonly Regex NameRegex = new Regex($@"([\w\/]*)(?:{Regex.Escape(GoogleTestConstants.ParameterizedTestMarker)}(.*))?", RegexOptions.Compiled);
private static readonly string SuiteInitialRegex = @"([\w\/\p{Nl}]*(?:\.[\w\/\p{Nl}]+)*)";
private static readonly string NameInitialRegex = @"([\w\/\p{Nl}]*)";
private static readonly Regex SuiteRegex = new Regex($@"{SuiteInitialRegex}(?:{Regex.Escape(GoogleTestConstants.TypedTestMarker)}(.*))?", RegexOptions.Compiled);
private static readonly Regex NameRegex = new Regex($@"{NameInitialRegex}(?:{Regex.Escape(GoogleTestConstants.ParameterizedTestMarker)}(.*))?", RegexOptions.Compiled);
private static readonly Regex IsParamRegex = new Regex(@"(\w+/)?\w+/\d+", RegexOptions.Compiled);

private readonly string _testNameSeparator;
Expand Down

0 comments on commit ae6c282

Please sign in to comment.