question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test run fails on netcoreapp1.0 targeted tests

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
MarcoRossignolicommented, Jul 11, 2019

So I think that we can close this for the moment.

1reaction
tonerdocommented, Jul 11, 2019

I’m on board with cutting out support for < netstandard2.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found