-
Notifications
You must be signed in to change notification settings - Fork 325
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
RunSettings auto-detection for assembly invocation scenarios #2418
Comments
Hi, is there any way to execute tests which have runsettings for own dll from cmd? I used this, but it doesn't load dll's runsettings files.
I'm using netcoreapp3.1 and VS 16.8.2. |
Nope, that isn't supported today as dotnet test / vstest only works with a single .runsettings file when operating on n assemblies. |
Thanks for answer @ViktorHofer. |
This is a new feature and won't be implemented, we are focusing on adding new features to Testing.Platform instead. https://aka.ms/testingplatform But I do agree that having to set runsettings in VS or explicitly provide them in console is annoying and it would be very helpful to have a default place where settings are found, like nuget.config, Directory.Build.Props etc. |
Following up on #2229 (comment).
If no .runsettings file is passed to vstest.console on an assembly invocation (ie dotnet test abc.dll), it should search for one in the test assembly's directory. The cwd could be used as a probing location as well.
cc @nohwnd @vritant24
The text was updated successfully, but these errors were encountered: