dotnet test doesn't work on .NET Core 3.0 Preview 6
See original GitHub issueFrom @omajid on Friday, June 28, 2019 9:56:30 PM
Steps to reproduce
dotnet --info
dotnet new xunit
dotnet test
Expected behavior
The generated UnitTest1
class with the single Test1
is executed and the test is marked as passed
Actual behavior
Microsoft (R) Test Execution Command Line Tool Version 16.0.1-dev+ea406627f919daa1d8da7daabe2d1f6619d2ad72
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
No test is available in /home/omajid/temp/test/bin/Debug/netcoreapp3.0/test.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
Additionally, path to test adapters can be specified using /TestAdapterPath command. Example /TestAdapterPath:<pathToCustomAdapters>.
Environment data
dotnet --info
output:
.NET Core SDK (reflecting any global.json):
Version: 3.0.100-preview6-012264
Commit: be3f0c1a03
Runtime Environment:
OS Name: fedora
OS Version: 30
OS Platform: Linux
d RID: fedora.30-x64
Base Path: /usr/lib64/dotnet/sdk/3.0.100-preview6-012264/
Host (useful for support):
Version: 3.0.0-preview6-27804-01
Commit: 17dd7897d6
.NET Core SDKs installed:
3.0.100-preview6-012264 [/usr/lib64/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.NETCore.App 3.0.0-preview6-27804-01 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
This dotnet SDK was compiled from the v3.0.0-preview6-27804-01
tag of source-build.
Copied from original issue: dotnet/cli#11663
Issue Analytics
- State:
- Created 4 years ago
- Comments:22 (19 by maintainers)
Top Results From Across the Web
dotnet test command - .NET CLI
The dotnet test command is used to execute unit tests in a given project. ... NET Core 3.1 SDK and later versions ......
Read more >too particular about .NET Core runtime version
I have found the same problem, and more. I have tests that when run (focused) with ctrl+r,t (testexplorer. runalltestsincontext) they succeed.
Read more >Test fails in net6.0 with no info
So my problem is accessing to dotnet. I guess it has something to do with having my source code stored in a different...
Read more >Visual Studio unable to run .NET Core tests
The following frameworks were found: 3.1.0 at [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]. It looks like it's got 3.1 ...
Read more >How To Resolve Issue Of Test Project Not Running The ...
Introduction. I was upgrading the .NET Core 3.1 project to .NET 6 and faced issues running test cases in my test projects.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve looked into this further and traced down the issue to xunit json parsing: https://github.com/xunit/xunit/issues/1980.
@dagood Here’s a Dockerfile that should reproduce the issue: