Skip to content
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

Closed
ViktorHofer opened this issue Apr 23, 2020 · 4 comments
Closed

RunSettings auto-detection for assembly invocation scenarios #2418

ViktorHofer opened this issue Apr 23, 2020 · 4 comments

Comments

@ViktorHofer
Copy link
Member

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

@mcichonqa
Copy link

Hi, is there any way to execute tests which have runsettings for own dll from cmd?
I don't know if this is possible at the moment, I couldn't find an answer to my question.

I used this, but it doesn't load dll's runsettings files.

dotnet vstest Test1.dll Test2.dll Test3.dll

I'm using netcoreapp3.1 and VS 16.8.2.

@ViktorHofer
Copy link
Member Author

ViktorHofer commented Dec 8, 2020

Nope, that isn't supported today as dotnet test / vstest only works with a single .runsettings file when operating on n assemblies.

@mcichonqa
Copy link

Thanks for answer @ViktorHofer.

@Evangelink Evangelink added the needs-triage This item should be discussed in the next triage meeting. label Aug 3, 2022
@Evangelink Evangelink added enhancement and removed needs-triage This item should be discussed in the next triage meeting. labels Nov 30, 2022
@nohwnd
Copy link
Member

nohwnd commented Jul 9, 2024

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.

@nohwnd nohwnd closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants