Skip to content

fix: deduplicate NoteBookmark.Domain in coverage report (#113)#114

Merged
fboucher merged 5 commits intov-nextfrom
fix/coverage-duplicate-entries
Apr 2, 2026
Merged

fix: deduplicate NoteBookmark.Domain in coverage report (#113)#114
fboucher merged 5 commits intov-nextfrom
fix/coverage-duplicate-entries

Conversation

@fboucher
Copy link
Copy Markdown
Owner

@fboucher fboucher commented Apr 2, 2026

Summary

Add ReportGenerator step to merge coverage reports from multiple test projects before feeding to CodeCoverageSummary. This fixes the duplicate NoteBookmark.Domain entries in the coverage report.

Problem

Two test projects reference NoteBookmark.Domain:

  • NoteBookmark.Api.Tests
  • NoteBookmark.AIServices.Tests

When irongut/[email protected] parses multiple Cobertura XML files, it creates separate (and sometimes stale) entries for the same assembly, resulting in:

  • One correct entry at 85%
  • One duplicate/stale entry at 5%

Solution

  1. ReportGenerator merges all cobertura.xml files into a single deduplicated report
  2. CodeCoverageSummary reads from the merged report instead of raw files

Test plan

  • CI passes and coverage report shows NoteBookmark.Domain only once
  • Coverage percentages are accurate

Closes #113

fboucher and others added 5 commits April 2, 2026 07:18
Tags are stored as comma-separated strings (e.g. "ai, agent, skill") but
GetAllUniqueTags() was splitting on '.' so each full tag string landed in
the HashSet unsplit, causing repeated prefixes like "ai" in the output.

Also updates the existing test to use comma-separated tags (matching real
data) and adds a regression test for the exact duplication scenario from
the bug report.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…ookmark.Domain

- Add ReportGenerator step to merge multiple cobertura.xml files
- Feed deduplicated summary to CodeCoverageSummary action
- Fixes duplicate NoteBookmark.Domain entries in coverage report (#113)
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

Code Coverage

Package Line Rate Branch Rate Health
NoteBookmark.AIServices 97% 64%
NoteBookmark.Api 91% 80%
NoteBookmark.Domain 85% 75%
NoteBookmark.ServiceDefaults 96% 75%
Summary 91% (780 / 859) 78% (175 / 225)

@fboucher fboucher changed the base branch from main to v-next April 2, 2026 17:11
@fboucher fboucher merged commit 3d4718c into v-next Apr 2, 2026
2 checks passed
@fboucher fboucher deleted the fix/coverage-duplicate-entries branch April 2, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code coverage report shows duplicate NoteBookmark.Domain entries

1 participant