Test run fails on netcoreapp1.0 targeted tests
See original GitHub issueWhen running tests on linux (in Azure Pipelines at least) with code coverage turned on…
dotnet test src --no-build -c Release --filter "TestCategory!=FailsInCloudTest" -v n -l trx /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
The build log shows this failure when the tests run on .NET Core 1.0:
[xUnit.net 00:00:01.64] System.IO.FileNotFoundException : Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
[xUnit.net 00:00:01.64] Stack Trace:
[xUnit.net 00:00:01.64] at Coverlet.Core.Instrumentation.Tracker.Nerdbank.Streams_42ec0704-f64b-48c0-a903-a8b9be93bc98.RecordHit(Int32 )
[xUnit.net 00:00:01.64] D:\a\1\s\src\Nerdbank.Streams\Sequence`1.cs(43,0): at Nerdbank.Streams.Sequence`1..ctor()
[xUnit.net 00:00:01.64] D:\a\1\s\src\Nerdbank.Streams.Tests\BufferWriterStreamTests.cs(25,0): at BufferWriterStreamTests..ctor(ITestOutputHelper logger)
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Visual Studio unable to run .NET Core tests
My test project's Target framework is .NET Core 2.1, so to run the tests it needed to look in the x64 folder path....
Read more >Test discovery for .Net Core Unit Test does not work if ...
I'm working on a multi-platform library project (net46/netstandard1.5/netstandard2.0/uap10.0) that runs fine with some tweaking.
Read more >Using dotnet watch test for continuous testing with .NET ...
SUMMARY: Total: 1 targets, Passed: 1, Failed: 0. I'll open my test project's project.json and add a reference to my other project.
Read more >Configure unit tests by using a .runsettings file
Select Test > Configure Run Settings > Auto Detect runsettings Files ... test + DLLs), the common target framework is set to netcoreapp1.0....
Read more >dotnet test command - .NET CLI
The dotnet test command is used to execute unit tests in a given project. ... 0 as an exit code; otherwise if any...
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 FreeTop 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
Top GitHub Comments
So I think that we can close this for the moment.
I’m on board with cutting out support for < netstandard2.0