Skip to content

test: exclude the TableWithDefaults POCO from coverage; Effort.EF6 licence mapping - #406

Merged
Chris-Wolfgang merged 3 commits into
mainfrom
fix/test-assembly-coverage
Sep 18, 2026
Merged

Chris-Wolfgang merged 3 commits into
mainfrom
fix/test-assembly-coverage

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

main fails two checks since the template upgrade (#404) — first seen on the docs-only #405.

  • Coverage gate: coverlet.runsettings now instruments test assemblies. Models/TableWithDefaults.cs is a linked file compiled into eight test projects (AutoFixture, Bogus, EF6–EF10 variants); only the Core project's tests set ModifiedDate/Rowguid, so the POCO scores 0%/33% in the others. It has no logic — [ExcludeFromCodeCoverage] (test POCO), with the reason in the file.
  • Licence audit: the template's license-audit.yaml reads .github/license-audit/url-license-mappings.json, which lacked Effort.EF6 (licence URL, not SPDX; the repo LICENSE is the MIT text). Same mapping as ci: actionlint v1.7.12 (knows windows-11-arm); Effort.EF6 licence URL → MIT repo-template#576.

Release build of the solution clean. Test-only + config; no src/ change. Unblocks #405.

🤖 Generated with Claude Code

…Effort.EF6 licence URL

The coverage gate now instruments test assemblies (template
coverlet.runsettings). Models/TableWithDefaults.cs is linked into eight test
projects and most only set Id, so the POCO scores 0-33% there; it has no
logic to cover. The template's license-audit.yaml reads
url-license-mappings.json, which lacked Effort.EF6 (URL licence, MIT text) -
same mapping as repo-template#576.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 18, 2026 02:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Only a non-blocking documentation nit remains.

Pull request overview

This PR unblocks coverage and license-audit checks after the template upgrade.

Changes:

  • Excludes the test-only TableWithDefaults POCO from coverage.
  • Maps Effort.EF6’s license URL to MIT.
File summaries
File Summary
tests/Wolfgang.DbContextBuilder-Core.Tests.Unit/Models/TableWithDefaults.cs Adds coverage exclusion metadata and rationale; one minor wording correction remains.
.github/license-audit/url-license-mappings.json Adds the Effort.EF6 MIT license mapping.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/Wolfgang.DbContextBuilder-Core.Tests.Unit/Models/TableWithDefaults.cs Outdated
…cies; repo-template#576)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Chris-Wolfgang

Copy link
Copy Markdown
Owner Author

Licence audit was still red on two more URL-licence packages behind Effort.EF6 — NMemory (zzzprojects, LICENSE is the MIT text) and Fare (moodmosaic; GitHub's licence API reports MIT). Both mapped, same additions on Chris-Wolfgang/repo-template#576.

…nk it)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Chris-Wolfgang
Chris-Wolfgang merged commit dfc694b into main Sep 18, 2026
17 checks passed
@Chris-Wolfgang
Chris-Wolfgang deleted the fix/test-assembly-coverage branch September 18, 2026 12:36
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.

2 participants