Open Xiaoy312 opened 1 year ago
GitHub Issue (If applicable): #89
What kind of change does this PR introduce?
new improved query syntax:
c# identifier is quite limited, space is definitely not a valid character, so is minus-sign multiple consecutive spaces are treated same as one
-
tag:match_text
tag are case insensitive class or c matches the class name method or m matches the method name display_name or d matches the display name in [DataRow] or [DynamicData] full_name or f matches the full name of method params or p matches the parameters of [DataRow] or [DynamicData](unrolled) at or @ (without colon) matches the [DataRow] or [DynamicData] case at specific index (DynamicData: index within the source)
tag are case insensitive
class
c
method
m
display_name
d
[DataRow]
[DynamicData]
full_name
f
params
p
at
@
,
eg: @0,1,2 or at:0,1,2 // matches 0st, 1nd, 2rd [DataRow] or entry within [DynamicData]
@0,1,2
at:0,1,2
\"
eg: p:"1,\"args 2\",3"
p:"1,\"args 2\",3"
^
$
eg: c:^List m:Changed$ d:^exactly_this_text$
c:^List m:Changed$ d:^exactly_this_text$
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
Currently we can match multiple tests (by OR logics) via ; delimiter. This is no longer supported in the new syntax.
;
todo:
GitHub Issue (If applicable): #89
PR Type
What kind of change does this PR introduce?
What is the new behavior?
new improved query syntax:
-
can be used before any term for exclusion, effectively filtering them outtag:match_text
,
can be used to specify multiple potential matches (chained by OR logic)\"
to escape double-quote within a double-quoted match text:^
and$
to perform head or tail match, or both to perform full matchPR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Currently we can match multiple tests (by OR logics) via
;
delimiter. This is no longer supported in the new syntax.