Title: [BUG] Missing Coverage after moving to MTP · Issue #1843 · coverlet-coverage/coverlet · GitHub
Open Graph Title: [BUG] Missing Coverage after moving to MTP · Issue #1843 · coverlet-coverage/coverlet
X Title: [BUG] Missing Coverage after moving to MTP · Issue #1843 · coverlet-coverage/coverlet
Description: Describe the bug After moving to coverlet.MTP from coverlet.msbuild (with xUnit) our coverage has dropped significantly using the opencover format. To Reproduce Generating an opencover report using the older VSTest system and again using...
Open Graph Description: Describe the bug After moving to coverlet.MTP from coverlet.msbuild (with xUnit) our coverage has dropped significantly using the opencover format. To Reproduce Generating an opencover report using...
X Description: Describe the bug After moving to coverlet.MTP from coverlet.msbuild (with xUnit) our coverage has dropped significantly using the opencover format. To Reproduce Generating an opencover report using...
Opengraph URL: https://github.com/coverlet-coverage/coverlet/issues/1843
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Missing Coverage after moving to MTP","articleBody":"**Describe the bug**\nAfter moving to coverlet.MTP from coverlet.msbuild (with xUnit) our coverage has dropped significantly using the opencover format.\n\n**To Reproduce**\n\nGenerating an opencover report using the older VSTest system and again using MTP version yields notably less entries in resulting file without other code changes.\n\n**Expected behavior**\n\nIdentical coverage results between coverlet.msbuild and coverlet.MTP with the same code / setup.\n\n**Actual behavior**\n\nMTP opencover results file has about 35% of the files the MSBuild version of the package does.\n\n**Configuration (please complete the following information):**\n\nFor VSTest:\n* coverlet.msbuild v8.0.0\n* Microsoft.NET.Test.Sdk v18.0.1\n* xunit.v3 v3.2.2\n* xunit.runner.visualstudio v3.1.5\n\nFor MTP:\n* coverlet.MTP v8.0.0\n* Microsoft.Testing.Platform v2.1.0\n* xunit.v3.mtp-v2 v3.2.2\n\nBoth running on .Net 10, issues present via azure pipeline running ubuntu-latest and locally on Windows 11.\n\n**Additional context**\n\nCommand run for VSTest on windows:\n\n`dotnet test \u003cProject\u003e --configuration \u003cConfig\u003e --nologo /p:SingleHit=true /p:CollectCoverage=true /p:CoverletOutputFormat=opencover `\n\nSummary header of VSTest opencover result:\n\n`\u003cSummary numSequencePoints=\"25080\" visitedSequencePoints=\"1346\" numBranchPoints=\"1970\" visitedBranchPoints=\"172\" sequenceCoverage=\"5.36\" branchCoverage=\"8.73\" maxCyclomaticComplexity=\"5097\" minCyclomaticComplexity=\"242\" visitedClasses=\"215\" numClasses=\"607\" visitedMethods=\"446\" numMethods=\"6914\" /\u003e`\n\nCommand run for MTP on windows:\n\n`dotnet test --project \u003cProject\u003e --configuration \u003cConfig\u003e --report-xunit-trx --coverlet --coverlet-output-format opencover --coverlet-include \u003cOwn Modules\u003e --coverlet-single-hit`\n\nSummary header for MTP opencover result:\n\n`\u003cSummary numSequencePoints=\"2596\" visitedSequencePoints=\"399\" numBranchPoints=\"808\" visitedBranchPoints=\"51\" sequenceCoverage=\"15.36\" branchCoverage=\"6.31\" maxCyclomaticComplexity=\"467\" minCyclomaticComplexity=\"11\" visitedClasses=\"79\" numClasses=\"226\" visitedMethods=\"112\" numMethods=\"624\" /\u003e`\n\nIf there is anything you need from me to test or more info let me know.\n\nSame behaviour when running using `--solution`, the logs indicate the module is being instrumented but not picking up all the files.","author":{"url":"https://github.com/mellis-ao","@type":"Person","name":"mellis-ao"},"datePublished":"2026-03-18T23:22:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1843/coverlet/issues/1843"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5e794f48-a191-4d2d-dfd4-0d71c4547017 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE20:1E0BA3:356D79F:46D4683:6A655AA9 |
| html-safe-nonce | 74cc2b9a26d16618b63e264f8080ddfda521ff498a3a0d1aeba08d8bf123394b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTIwOjFFMEJBMzozNTZENzlGOjQ2RDQ2ODM6NkE2NTVBQTkiLCJ2aXNpdG9yX2lkIjoiODcwNTk5MjA2NjE4NjE3MzA5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5ebfb3f5e70b9d65b68b6a0ce6b1fe0a2455f9887e297c5b56825a1a90e62727 |
| hovercard-subject-tag | issue:4098262077 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coverlet-coverage/coverlet/1843/issue_layout |
| twitter:image | https://opengraph.githubassets.com/14069b268821fe5d0272755d663e27453fc94e0c0d88251a14954bfe007f4105/coverlet-coverage/coverlet/issues/1843 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/14069b268821fe5d0272755d663e27453fc94e0c0d88251a14954bfe007f4105/coverlet-coverage/coverlet/issues/1843 |
| og:image:alt | Describe the bug After moving to coverlet.MTP from coverlet.msbuild (with xUnit) our coverage has dropped significantly using the opencover format. To Reproduce Generating an opencover report using... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mellis-ao |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| go-import | github.com/coverlet-coverage/coverlet git https://github.com/coverlet-coverage/coverlet.git |
| octolytics-dimension-user_id | 64739519 |
| octolytics-dimension-user_login | coverlet-coverage |
| octolytics-dimension-repository_id | 119716732 |
| octolytics-dimension-repository_nwo | coverlet-coverage/coverlet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 119716732 |
| octolytics-dimension-repository_network_root_nwo | coverlet-coverage/coverlet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width