vstest icon indicating copy to clipboard operation
vstest copied to clipboard

RunSettings auto-detection for assembly invocation scenarios

Open ViktorHofer opened this issue 5 years ago • 3 comments

Following up on https://github.com/microsoft/vstest/issues/2229#issuecomment-571822652.

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

ViktorHofer avatar Apr 23 '20 17:04 ViktorHofer

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.

mcichonqa avatar Dec 08 '20 12:12 mcichonqa

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

ViktorHofer avatar Dec 08 '20 13:12 ViktorHofer

Thanks for answer @ViktorHofer.

mcichonqa avatar Dec 09 '20 00:12 mcichonqa