Closed joemey closed 6 years ago
@joemey
TpTrace Verbose: 0 : 8252, 7, 2017/11/17, 13:36:15.369, 51341827866, testhost.x86.exe, TestPluginCache: Discoverers are ''.
Above line indicates that no adapter passed to host process, Can you specify /TestAdapterPath:\path\to\xunit.runner.visualstudio\2.3.1\build\_common
argument.?
Or Use latest dotnet sdk (Example: 2.1.0-preview1-007372) which has fix for https://github.com/Microsoft/vstest/issues/251.
Please reactive issue, If provide solution didn't work.
specifing an /TestAdapterPath:\path\to\xunit.runner.visualstudio\2.3.1\build\_common
or using sdk 2.2.0-preview1-007558
works.
Thanks!
Description
dotnet vstest /Framework:.NETFramework,Version=v4.6 bin\debug\net46\test.dll
won't find any tests in the assembly.looking into the testhost diagnostic file shows that
testhost.x86.exe
is trying to load the assembliesMicrosoft.TestPlatform.TestHostRuntimeProvider, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
andMicrosoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
which failes with anBadImageFormatException
because these assemblies are build for x64 instead of msilswitching to x64 with
dotnet vstest /Framework:.NETFramework,Version=v4.6 /Platform:x64 bin\debug\net46\test.dll
won't work either and the testhost diagnostic file shows plenty oferrors.
I think it's unfortunate that
dotnet vstest [...]
silently disacards anytesthost(.x86).exe
errors while running and simply claims that there were no tests to runSteps to reproduce
dotnet xunit
dotnet build
dotnet vstest /Framework:.NETFramework,Version=v4.6 bin\debug\net46\test.dll
dotnet vstest /Framework:.NETFramework,Version=v4.6 /Platform:x64 bin\debug\net46\test.dll
Expected behavior
Actual behavior
Diagnostic logs
The attached logs have been created with fusion logs enabled
logs.zip
Environment