coverlet-coverage / coverlet

Cross platform code coverage for .NET
MIT License
2.97k stars 386 forks source link

Zero code coverage when running on GHActions #918

Closed eddynaka closed 4 years ago

eddynaka commented 4 years ago

Hi,

I have created a pipeline in GHActions that tests all projects. I have one specific project that targets only net452 and net46. Just this project doesn't seem to output the correct values when running on GHActions.

When I execute the command locally (windows), it does output normally.

Below the command: dotnet test --collect:"XPlat Code Coverage" --results-directory:"TestResults" --configuration Release --no-build -- RunConfiguration.DisableAppDomain=true

Anyway to debug this and understand why does this happen only in GHActions?

Thank you.

eddynaka commented 4 years ago

Just forgot to say: using the latest version of coverlet.collector:

    <PackageReference Include="coverlet.collector" Version="1.3.0">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
eddynaka commented 4 years ago

I saw that this isn't supported for .netframework. Do u have a plan to support it?

tonerdo commented 4 years ago

@eddynaka support for the .NET Framework isn't prioritiezed at this time

eddynaka commented 4 years ago

i see...i changed temporary to "Code Coverage" flag.

Thank you.