In the start of Main (e.g, easiest in Playground in this repo), add the following:
args = [
"--results-directory",
"TestResults",
"""
--filter FullyQualifiedName~MyFQN
""", "--server", "dotnettestcli"];
Then check the created CommandLineParseResult in CommandLineParser.Parse:
The filter is swallowed.
Then, change Main to:
args = [
"--results-directory",
"TestResults",
"""
--filter FullyQualifiedName~MyFQN
"""];
The filter won't be swallowed.
- In all cases, I think we shouldn't swallow anything in our parsing.
- It's questionable if
--command-line-option value should really be handled when they are escaped together as a single argument.
In the start of
Main(e.g, easiest in Playground in this repo), add the following:Then check the created
CommandLineParseResultinCommandLineParser.Parse:The filter is swallowed.
Then, change
Mainto:The filter won't be swallowed.
--command-line-option valueshould really be handled when they are escaped together as a single argument.