Repository navigation
Releases
Releases · coverlet-coverage/coverlet
v10.1.1
Improvements
- Add
IsReachableto branch points, computed from the method's control-flow graph, and exclude unreachable branches from branch-coverage totals and from branch details in Cobertura, LCOV and OpenCover reports #2056 by @pcshrosbree - coverlet.MTP: Narrow Dynamic Exclude Filters for Loaded Assemblies #2069
Fixed
- Fix Regression Prevent invalid IL from branch trampolines #2067
- Fix Regression coverlet.MTP does not instrument local functions #2046
Maintenance
- Update NuGet package versions #2050
v10.1.0
Improvements
- Publish Microsoft.Testing.Platform coverage messages from coverlet.MTP #2019
- Implement dynamic exclusion filters for assemblies (Coverlet.MTP) #1946
- Replace legacy .sln files with modern .slnx format #1966
- coverlet.console: add trace diagnostics and actionable warnings for instrumentation/hit/empty-result failures #2005
- Relax auto-property skip logic and improve coverage for records #1941
Fixed
- Fix coverlet.MTP does not collect coverage on the .NET Framework portion of a large project #1980 #1967
- Fix Regression in branch coverage for lambda expressions #1938
- Fix When using "is" with "or" in pattern matching, branch coverage is lower than normal #1979
- Fix silent zero coverage on .NET Framework since 8.0.0 #1985 by @tobiwae
- Fix Race condition between ProcessExit hit-file write and out-of-proc coverage read causes EndOfStreamException #1987 #1988 by @bkoelman
- Fix Regression TypeInitializationException when targeting .NET Framework - Could not load type 'System.Collections.Concurrent.ConcurrentBag #2010
- Fix use --config-file CLI arg in coverlet.MTP #2030 by @alexthornton1
- Fix silently empty coverage for shared-framework assemblies missing from compileLibraries #2032 by @Eljees
v10.0.1
Improvements
- Coverlet with MTP 2 doesn't show test coverage statistic in console #1907
- Avoid unnecessary testhost restarts #1912 by https://github.com/mawosoft
Fixed
- Fix inconsistent paths in cobertura reports #1723
- Fix when using "is" with "and" in pattern matching, branch coverage is lower than normal #1313
- Fix Coverlet flagging a branch for an async functions finally block where none exists #1337
- Fix Coverlet Tracker Missing CompilerGeneratedAttribute #1828
Maintenance
v10.0.0
Improvements
- Unique Report Filenames (coverlet.MTP and AzDO) #1866
- Add
--coverlet-file-prefixoption for unique report files #1869 - Introduce .NET 10 support #1823
Fixed
- Fix [BUG] Wrong branch rate on IAsyncEnumerable for generic type #1836
- Fix [BUG] Missing Coverage after moving to MTP #1843
- Fix [BUG] No coverage reported when targeting .NET Framework with 8.0.1 #1842
- Fix [BUG] Behavior changes between MTP and Legacy (msbuild) #1878
- Fix [BUG] Coverlet.MTP - Unable to load coverlet.mtp.appsettings.json #1880
- Fix [BUG] Coverlet.Collector produces empty report when Mediator.SourceGenerator is referenced #1718 by https://github.com/yusyd
- Fix [BUG] Crash during instrumentation (Methods using LibraryImport/DllImport have no body) #1762
Maintenance
v8.0.1
v8.0.0
Special Thanks: A huge thank you to @Bertk for driving the majority of the work in this release! 🎉
Fixed
- Fix System.CommandLine 2.0 release is available #1776
- Fix Excluding From Coverage bad defaults from given example #1764
- Fix branchpoint exclusion for sdk 8.0.407 #1741
- Fix missing copyright information in NuGet #1794
- Fix bad default values in documentation #1764 by https://github.com/cboudereau
Improvements
- Coverlet MTP extension feature #1788
- Generate SBOM for nuget packages #1752
- Use multi targets projects for coverlet.collector, coverlet.msbuild.tasks packages #1742
- Use .NET 8.0 target framework for coverlet.core and remove Newtonsoft.Json #1733
- Use latest System.CommandLine version #1660
- Upgraded minimum required .NET SDK and runtime to .NET 8.0 LTS (Long Term Support) (Breaking Change)
- Use xunit.v3 for tests and example code
v6.0.4
Fixed
- Fix empty coverage report when using include and exclude filters #1726
v6.0.3
Fixed
- Fix RuntimeConfigurationReader to support self-contained builds #1705 by https://github.com/pfeigl
- Fix inconsistent filenames with UseSourceLink after .NET 8 #1679
- Fix hanging tests #989
- Fix coverlet instrumentation becomes slow after installing dotnet sdk 8.0.200 #1620
- Fix upgrading v6.0.1 to v6.0.2 increases instrumentation time #1649
- Fix Unable to instrument module - NET 8 #1631
- Fix slow modules filtering process #1646 by https://github.com/BlackGad
- Fix incorrect coverage await using in generic method #1490
Improvements
v6.0.2
Fixed
- Threshold-stat triggers error #1634
- Fixed coverlet collector 6.0.1 requires dotnet sdk 8 #1625
- Type initializer errors after updating from 6.0.0 to 6.0.1 #1629
- Exception when multiple exclude-by-attribute filters specified #1624
Improvements
- More concise options to specify multiple parameters in coverlet.console #1624
v6.0.1
Fixed
- Uncovered lines in .NET 8 for inheriting records #1555
- Fix record constructors not covered when SkipAutoProps is true #1561
- Fix .NET 7 Method Group branch coverage issue #1447
- Fix ExcludeFromCodeCoverage does not exclude method in a partial class #1548
- Fix ExcludeFromCodeCoverage does not exclude F# task #1547
- Fix issues where ExcludeFromCodeCoverage ignored #1431
- Fix issues with ExcludeFromCodeCoverage attribute #1484
- Fix broken links in documentation #1514
- Fix problem with coverage for .net5 WPF application #1221 by https://github.com/lg2de
- Fix unable to instrument module for Microsoft.AspNetCore.Mvc.Razor #1459 by https://github.com/lg2de
Improvements
- Extended exclude by attribute feature to work with fully qualified name #1589
- Use System.CommandLine instead of McMaster.Extensions.CommandLineUtils #1474 by https://github.com/Bertk
- Fix deadlog in Coverlet.Integration.Tests.BaseTest #1541 by https://github.com/Bertk
- Add coverlet.msbuild.tasks unit tests #1534 by https://github.com/Bertk