Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

no results for dotnet core using target dotnet.exe #789

Description

@joelnet

My Framework

  • .NET 2
  • .NET 3.5
  • .NET 4
  • .NET 4.5
  • .NET 4.6
  • .NET 4.6.1
  • .NET 4.6.2
  • .NET Core 1.0.0
  • .NET Core 2.0.0
  • Something else

My Environment

  • Windows 7 or below (not truly supported due to EOL)
  • Windows 8
  • Windows 8.1
  • Windows 10
  • Windows 10 IoT Core
  • Windows Server 2012
  • Windows Server 2012 R2
  • Windows Server 2016

I have already...

  • repeated the problem using the latest stable release of OpenCover.
  • reviewed the usage guide and usage document.
  • have looked at the opencover output xml file in an attempt to resolve the issue.
  • reviewed the current issues to check that the issue isn't already known.

My issue is related to (check only those which apply):

  • no coverage being recorded
  • 32 or 64 bit support
  • feature request

Expected Behavior

Coverage report

Actual Behavior

No report

Steps to reproduce the problem:

Installed via nuget: OpenCover 4.6.519, xunit.runner.console 2.3.1

Target framework: .NET Standard 2.0 / .NET Core 2.0

OpenCover.Console.exe -register:user -output:coverage.xml -target:"dotnet.exe" -targetargs:"C:\...\packages\xunit.runner.console\2.3.1\tools\netcoreapp2.0\xunit.console.dll MyProject.Tests\bin\Debug\netcoreapp2.0\MyProject.Tests.dll" -filter:"+[MyProject*]* -[*.Tests]*"

output

Executing: C:\Program Files\dotnet\dotnet.exe
xUnit.net Console Runner (64-bit .NET Core 4.6.00001.0)
  Discovering: MyProject.Tests
  Discovered:  MyProject.Tests
  Starting:    MyProject.Tests
  Finished:    MyProject.Tests
=== TEST EXECUTION SUMMARY ===
   MyProject.Tests  Total: 6, Errors: 0, Failed: 0, Skipped: 0, Time: 0.663s
Committing...
No results, this could be for a number of reasons. The most common reasons are:
    1) missing PDBs for the assemblies that match the filter please review the
    output file and refer to the Usage guide (Usage.rtf) about filters.
    2) the profiler may not be registered correctly, please refer to the Usage
    guide and the -register switch.

I went over the docs, but I couldn't find any examples with .net core. or xunit.

I'm hoping someone could point me in the right direction to solving this.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions