-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regular --where test filter with quotes or spaces cannot be passed via @ FILE option #1359
Comments
From the documentation for @file... "Specifies the name (or path) of a FILE containing additional command-line arguments to be interpolated at the point where the @file expression appears. Each line in the file represents a separate command-line argument." In this case, your aren't passing the full argument but only a part of it... Instead try either of the following in your file...
The second line uses the Note that double quotes need to be escaped with a backslash on the command-line but not in the file. That's a feature. :-) |
@CharliePoole Thank you for the quick response!
The first line doesn't work either:
This was my second question, if we are talking about command line parameters:
, I'd say |
I no longer work on the NUnit project, but it does look as if the particular expression WRT what is meant by an argument, I must admit that the docs could have been more specific. What each line represents is actuall a separate argument as handled internally by NUnit. Depending on how you write it, this may be a single command-line argument or two arguments. For example, compare Additionally, this handling will also vary between operating systems. Consider, for example that most Linux systems handle single quotes specially on the command-line while Windows doesn't. One of the ideas behind both |
Switching this to be purely a documentation issue. It would be a bug if we really wanted to be able to put arbitrary text in the file and have it combine with what was on the command-line, but that has never been the goal of this feature. OTOH, we need to be much clearer about how it works in the docs. |
Reflects changes made to the console runner help message in response to nunit/nunit-console#1359. Users are confused about the distinction between command-line arguments and the arguments passed to the runner.
Reflects changes made to the console runner help message in response to nunit/nunit-console#1359. Users are confused about the distinction between command-line arguments and the arguments passed to the runner.
Reflects changes made to the console runner help message in response to nunit/nunit-console#1359. Users are confused about the distinction between command-line arguments and the arguments passed to the runner. 697dcef
This issue has been resolved in version 3.18.2 The release is available on: |
Hi!
It turned out that
==
operator for test names with quotes or spaces cannot be passed via@FILE
, unlike the case when it is passed as command line arguments:and run with:
but it works when passing
--where
argument as parameters of a command line:NUnit Console 3.16.3
NUnit 3.13.3
Linked issues: #94, #1181.
The text was updated successfully, but these errors were encountered: