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
Both VS2017 IDE and dotnet test should execute the XUnit tests in the test project.
Actual behavior
VS2017 IDE is able to execute the tests successfully. However, dotnet test fails with the following warning:
Warning: The path '[...]\artifacts\test\<test_project_name>\Debug\net461' specified in the 'TestAdapterPath' does not contain any test adapters, provide a valid path and try again.
Additional info
I noticed the following:
My guess is that the execution with dotnet test fails as I can't find xunit.runner.visualstudio assemblies in the output path (xunit.runner.visualstudio.testadapter.dll is missing).
If I remove the custom output path settings (i.e. remove both <BaseIntermediateOutputPath> and <OutputPath> from the .csproj file, then dotnet test succeeds. In fact, I see in the default bin directory the files from xunit.runner.visualstudio package (xunit.runner.visualstudio.testadapter.dll).
Note that other NuGet package assemblies are properly copied to the custom output directory. I assume those are the dependencies that are also referenced in code; whereas the XUnit runner/testadapter assemblies are not referenced anywhere in the solution.
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.0-rc3-004530
The text was updated successfully, but these errors were encountered:
Steps to reproduce
dotnet test
Expected behavior
Both VS2017 IDE and
dotnet test
should execute the XUnit tests in the test project.Actual behavior
VS2017 IDE is able to execute the tests successfully. However,
dotnet test
fails with the following warning:Warning: The path '[...]\artifacts\test\<test_project_name>\Debug\net461' specified in the 'TestAdapterPath' does not contain any test adapters, provide a valid path and try again.
Additional info
I noticed the following:
dotnet test
fails as I can't findxunit.runner.visualstudio
assemblies in the output path (xunit.runner.visualstudio.testadapter.dll is missing).<BaseIntermediateOutputPath>
and<OutputPath>
from the .csproj file, thendotnet test
succeeds. In fact, I see in the defaultbin
directory the files fromxunit.runner.visualstudio
package (xunit.runner.visualstudio.testadapter.dll).Environment data
dotnet --info
output:.NET Command Line Tools (1.0.0-rc3-004530)
Product Information:
Version: 1.0.0-rc3-004530
Commit SHA-1 hash: 0de3338
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.0-rc3-004530
The text was updated successfully, but these errors were encountered: