c8 vs Microsoft Code Coverage
c8
github.comMicrosoft Code Coverage
github.comSide by side
| Figure | c8 | Microsoft Code Coverage |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Test Coverage Tools | 7.7 (#11) | 7.5 (#18) |
| Configuration | c8 accepts command-line flags, a c8 section in package.json, or a JSON configuration file. | Coverage settings can control output, inclusion and exclusion rules, and instrumentation options using runsettings or dedicated coverage settings files. |
| Purpose | c8 produces code coverage reports using Node.js’ built-in V8 coverage. | Measures what proportion of a project's code is exercised by coded tests such as unit tests. |
| Report formats | The README documents Istanbul-compatible reporters and an experimental Monocart option with v8 and console-details reporters. | The MTP coverage extension supports coverage, XML, and Cobertura output formats. |
| Security | The repository has a Security and quality section, but the opened security page did not expose specific security or compliance claims. | The repository links to a security policy, but its README describes this repository as documentation and samples for closed-source coverage functionality. |
Plans
In their own words
Microsoft Code Coverage
Microsoft Code Coverage measures how much of a project’s code is exercised by coded tests, such as unit tests. Its documented workflows cover.NET test projects with `dotnet test` and other.NET applications with the `dotnet-coverage` tool. It analyzes managed CLR and unmanaged native code using static or dynamic instrumentation; native coverage is disabled by default in the MTP extension. With Microsoft.Testing.Platform.MSBuild, extensions are auto-registered with MSTest, NUnit, and xUnit runners. The MTP extension can produce coverage, XML, and Cobertura reports, with settings for output, inclusion and exclusion rules, and instrumentation. It runs on Windows, macOS, and multiple Linux distributions, though instrumentation support varies by OS, version, and architecture. Other operating systems are supported on a best-effort basis, and some combinations allow static instrumentation only. Dynamic instrumentation on macOS and Linux requires libxml2, and missing dependencies may leave a report empty. MTP also excludes test assemblies by default unless configured otherwise. The plan is free.