Coverage being generated only with a filter argument
See original GitHub issueI’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:
- Created 3 years ago
- Comments:8
Top 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 >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
Sorry for the lack of feedback @MarcoRossignoli. I’ll leave this in my To-Do
Closed for stale conversation, feel free to re-open if needed.