Coverlet.MTP Namespace
Coverlet.MTP connects coverage instrumentation and report collection to a Microsoft Testing Platform test application. Use the Codebelt.Coverlet.MTP package and --coverlet for normal test runs; its build assets arrange extension discovery without a handwritten registration call.
For a custom test application builder, CoverletExtensionProvider.AddCoverletExtensionProvider registers the controller, test-host and command-line components. TestingPlatformBuilderHook is the package discovery entry point and delegates to the same registration. Register once; a custom builder owns application construction and disposal, while the extension owns coverage collection during that application's execution. This is an MTP extension, rather than a replacement test framework or a VSTest collector. See Microsoft's extension guidance.
Extension Members
| Type | Ext | Methods |
|---|---|---|
ITestApplicationBuilder |
⬇️ | AddCoverletExtensionProvider |
Availability: .NET 11, .NET 10 and .NET Standard 2.0
Related: Coverlet.MTP.Configuration, Coverlet.MTP.Diagnostics.
Classes
- CoverletExtensionProvider
Registers controller instrumentation, test-host coverage flushing and coverage command-line options with MTP.
- TestingPlatformBuilderHook
Connects MTP package discovery to the complete Coverlet extension registration.