Skip to content

Cover slug boundary contracts and supported-version coverage union - #284

Merged
dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/coverage
Oct 18, 2026
Merged

dblock merged 1 commit into
mongoid:masterfrom
dblock:dblock/coverage

Conversation

@dblock

@dblock dblock commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Baseline91.08% default-branch line coverage. Add persisted slug clear/reset/unset tests, explicit-text suggestions, real saved/history slug-state inspection, safe unconfigured-concern behavior, standalone version/require aliases, and actual Rails task registration with a development-only railties dependency. Explicitly keep existing task tests in their original standalone environment by hiding the Rails constant within those examples.

186 examples and full lint pass; modern9 local98.38%(303/308). Combine real supported Mongoid8 and9 reports for scope compatibility; preserve honest unsupported legacy metadata-adapter gaps instead of fabricating old driver protocols or predicates for a metric. No production changes, source exclusions or narrowed tracked files.

Accepted CI coverage: 98.38% (303/308 relevant lines), Coveralls build82425453, after all final-head matrix jobs passed. (Historical report before version-test simplification; not the revised head.)

Prepared by an AI on behalf of @dblock.

Update: version tests now assert the already-loaded public constant directly. Removed constant hiding/replacement, version-file reloading, and manual cleanup used only to count assignments under coverage. Any coverage decrease is intentional; earlier percentages above predate this simplification. Genuine compatibility and integration tests remain unchanged.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Danger Report

No issues found.

View run

@dblock
dblock force-pushed the dblock/coverage branch 3 times, most recently from 6efc95c to e32c9ca Compare October 18, 2026 13:28
Exercise saved slug clearing/reset/unset, explicit-text suggestions, history-state reporting, unconfigured concerns, version/require entry points and actual Rails task registration. Keep existing standalone rake tests isolated from the Rails constant. Combine real supported Mongoid8 and9 reports rather than fake obsolete metadata/version APIs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock merged commit c0d99a3 into mongoid:master Oct 18, 2026
18 checks passed
@dblock
dblock deleted the dblock/coverage branch October 18, 2026 13:50
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.

1 participant