You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestCaseNameParser uses the following regex for extracting class, method names:
/// <summary>
/// This one can handle standard formatting with or without method data.
/// </summary>
private static readonly Regex MethodRegex = new (@"^([a-z0-9_.]{1,})\.([a-z0-9_.+]{1,})\.(.{1,})$", RegexOptions);
/// <summary>
/// Can handle standard formatting with class and method data.
/// </summary>
private static readonly Regex ClassDataRegex = new (@"^([a-z0-9_.]{1,})\.([a-z0-9_.]{1,}\(.{0,}\))\.(.{1,})$", RegexOptions);
TestCaseNameParser uses the following regex for extracting class, method names:
This format doesn't work with custom naming, e.g. spekt/junit.testlogger#76
Also related spekt/junit.testlogger#79 to specify custom class name format.
Proposal
Can we allow custom regex (with named groups) for test case name parser?
The text was updated successfully, but these errors were encountered: