-
Notifications
You must be signed in to change notification settings - Fork 724
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
In nunit3-console you cannot pass parameters containing ';' because they always get splitted #1694
Comments
See our docs, there is general information there on quoting for various operating systems. You can also have multiple --param in the command line, one per variable. I am closing this as a question, but feel free to add questions, we will see them and try to help. |
@rprouse - I think this is a potential 'issue' within NUnit, not command line usage? Looks like the options will always split on semi-colon, and then throw if it's not a valid |
Yes @ChrisMaddock, i would have tried to create a pull request to show a possible solution, it actually require only a one line change and a sensible regexp, but i'm quite bad at it (a connection string is a simple example of an impossible paramater to pass right now) |
Sorry, reading issues on my phone, I missed the detail 😦 |
Issue moved to nunit/nunit-console #23 via ZenHub |
When running some tests with nunit3-console.exe, if you pass with --param there is no way to pass inside a value a ';'.
It seems from CommandLineOptions.cs the you can't escape them in any way (it's not documented so i read the source directly).
A regex to capture only not escaped char would solve the problem (i'm not a regex expert so i cant suggest exact one)
The text was updated successfully, but these errors were encountered: