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.

Coverage being generated only with a filter argument

See original GitHub issue

I’m trying to setup coverage on playwright-sharp. I added this to the csproj:

 <PackageReference Include="coverlet.msbuild" Version="2.8.0">
        <PrivateAssets>all</PrivateAssets>
        <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

It seems to be working with these command arguments:

dotnet test ./PlaywrightSharp.Tests.csproj -f netcoreapp3.1 /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --filter ClassName~PlainTextContentEditableTests

But it doesn’t work without the filter argument:

dotnet test ./PlaywrightSharp.Tests.csproj -f netcoreapp3.1 /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura

Note: The full test suite is over 1,000 tests that could take over 5 minutes.

Ideas?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
kblokcommented, Jan 3, 2021

Sorry for the lack of feedback @MarcoRossignoli. I’ll leave this in my To-Do

0reactions
MarcoRossignolicommented, Jan 3, 2021

Closed for stale conversation, feel free to re-open if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest finds tests but doesn't collect coverage
Jest is being able to find all the tests but it fails to collect coverage: PASS src/components/Home/Home.test.tsx PASS src/components ...
Read more >
Use Justification Rules to Filter Code Coverage Outcomes
Generate Code Coverage Data. First, put the model into SIL/PIL mode. In the Simulink® window, click Apps and, under Code Verification, Validation, and...
Read more >
Set up coverage filters | dotCover Documentation
dotCover applies these filters during a coverage session. Use these filters to exclude unnecessary code from analysis and reduce coverage ...
Read more >
Customizing Code Coverage Analysis - Visual Studio
Learn how to use the ExcludeFromCodeCoverageAttribute attribute to exclude test code from coverage results. You can include assemblies ...
Read more >
How To Generate PHPUnit Coverage Report In HTML and ...
A detailed guide by LambdaTest on how to generate a PHPUnit coverage report in HTML using Xdebug, PCOV, and php-code-coverage in HTML and ......
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