Cross-Platform Unit Testing and Code Coverage with Coverlet
summary
Coverlet is a cross‑platform code coverage tool for .NET Core that injects instrumentation into test dependencies, runs tests, writes temporary hit files, calculates coverage and then restores assemblies so no manual cleanup is needed. It ships as an MSBuild package or a global tool, runs on Windows macOS and Linux, enforces numeric thresholds (example: method 75% branch 50% until tests added), and supports opencover cobertura lcov json output for CI and HTML report generation via reportgenerator.
AI-written summary · about
chapters (14)
- 0:00Introduction to coverlet
- 1:03How coverlet works
- 2:54Using coverlet via package
- 5:19Analyzing coverage reports
- 8:21Supported report formats
- 10:05Enforcing coverage thresholds
- 13:24Global tool usage
- 19:26CI/CD integration
- 30:05Visualizing results
- 34:51Advanced usage and ecosystem
- 38:26Alternatives and Q&A
- 40:33Live stream banter
- 46:51Azure functions demo
- 50:38Closing and wrap-up
related talks
03mTest coverage
31mMeasure End to End Tests Coverage
01h 08mWhat's New & Next in Testing & Code Coverage in Visual Studio
19mTesting Your Tests With Code Coverage
30mTesting Tools and Their Friends
07mGenerating Coverage with System Test
34mAutotest Coverage Visualization
22mCollecting Code Coverage With Bazel
