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

With .Net5 Preview8 installed, run Unit test failed with error: No suitable test runtime provider found for this run. #12622

Closed
vdanche opened this issue Jul 24, 2020 · 6 comments
Assignees
Labels
untriaged Request triage from a team member

Comments

@vdanche
Copy link
Member

vdanche commented Jul 24, 2020

Steps to produce:

  1. Install .net5 preview8 SDK: 5.0.100-preview.8.20373.19
  2. dotnet new xunint/mstest/nunit in CLI
  3. dotnet build and then dotnet test

Expected result:
Unit test run successfully

Actual result:
run failed with below error:
image

Dotnet --info
c:\tt\myxunit>dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.100-preview.8.20373.19
Commit: f0489b2010

Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.100-preview.8.20373.19\

Host (useful for support):
Version: 5.0.0-preview.8.20372.7
Commit: 3cab6dd440

.NET SDKs installed:
5.0.100-preview.8.20373.19 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.0-preview.8.20372.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.0-preview.8.20372.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.0-preview.8.20373.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

@nohwnd
Copy link
Member

nohwnd commented Jul 27, 2020

Fix for this was added here microsoft/vstest#2491 waiting for #12650 to be merged so our automatic inserting into sdk master passes. Then I will need to make PR against preview8.

@marcpopMSFT marcpopMSFT added the untriaged Request triage from a team member label Jul 31, 2020
@vdanche
Copy link
Member Author

vdanche commented Aug 7, 2020

In latest .Net 5 preview8 SDK(5.0.100-preview.8.20403.18), Error as below when dotnet test xunit
image
No test is available in C:\Users\v-danche\source\repos\xunit1\bin\Debug\net5.0\xunit1.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

@nohwnd
Copy link
Member

nohwnd commented Aug 8, 2020

@vdanche the same change that cause the one above also affected xunit visual studio runner package, I patched it here, please update your version to 2.4.3 xunit/visualstudio.xunit#229 <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">.

I also updated the dotnet test templates.

@nohwnd
Copy link
Member

nohwnd commented Aug 8, 2020

@dsplaisted I also added this to the know issues list. I believe there is nothing more to do in this issue and can be closed. But you are assigned so it is your call 🙂

@vdanche
Copy link
Member Author

vdanche commented Aug 12, 2020

@vdanche the same change that cause the one above also affected xunit visual studio runner package, I patched it here, please update your version to 2.4.3 xunit/visualstudio.xunit#229 <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">.

I also updated the dotnet test templates.

@nohwnd Thanks, this workaround works fine.

@vdanche
Copy link
Member Author

vdanche commented Aug 13, 2020

Fixed on .NET 5 preview 8 SDK-5.0.100-preview.8.20412.11.
image

@vdanche vdanche closed this as completed Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

4 participants