You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vstest.console can take a response file that is used to provide parameters to vstest.console.exe when the parameters become larger than the command line limit of 32k characters, for example when there is a huge test filter or a lot of dlls with long paths.
vstest.console is able to consume that file just fine, but:
dotnet test, fails to see that this is a dotnet test + dll run, and fails to run.
dotnet vstest expands the file and tries to relay to vstest.console using command line, hitting the same 32k command limit the response file was trying to avoid.
Example (obviously make the filter much longer, or provide way more dlls, even copies of the same dll name are fine):
C:\t\mstest46\bin\Debug\net7.0\mstest46.dll C:\t\mstest47\bin\Debug\net7.0\mstest47.dll /TestCaseFilter:"FullyQualifiedName=mstest46.UnitTest1.TestMethod1|FullyQualifiedName=mstest46.UnitTest1.TestMethod2"
Call from powershell (escaping the @ to avoid splatting): & "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\TestPlatform\vstest.console.exe" `@parameters.rsp
Or from cmd: "C:\Program Files\Microsoft Visual Studio\2022\ Enterprise \Common7\IDE\Extensions\TestPlatform\vstest.console.exe" @parameters.rsp
The text was updated successfully, but these errors were encountered:
I did not see bugs reported around this, so either the functionality is rarely used, or not used via dotnet test & vstest. But is for sure used by CloudBuild via vstest.console.
This would require architectural changes to vstest, and won't be implemented, we are focusing on adding new features to Testing.Platform instead. https://aka.ms/testingplatform
vstest.console can take a response file that is used to provide parameters to vstest.console.exe when the parameters become larger than the command line limit of 32k characters, for example when there is a huge test filter or a lot of dlls with long paths.
vstest.console is able to consume that file just fine, but:
Example (obviously make the filter much longer, or provide way more dlls, even copies of the same dll name are fine):
The text was updated successfully, but these errors were encountered: