Skip to content

test: cover spatial analysis and plotting contracts - #198

Open
byee4 wants to merge 1 commit into
masterfrom
codex/tests-bento-tools-20261026-050250
Open

byee4 wants to merge 1 commit into
masterfrom
codex/tests-bento-tools-20261026-050250

Conversation

@byee4

@byee4 byee4 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Adds unit coverage for public spatial-analysis contracts: exact point-feature values, shape measurements and cache behavior, synchronized gene filtering, metadata errors, vector colors, packaged gene sets, KNN/radius RNAflux counts, and plotted coordinates, geometry, labels, and loadings. The existing plotting tests were entirely commented out.

Three strict expected-failure regressions document independently reproduced implementation defects: #195 (RMSE arithmetic), #196 (noninteger span truncation), and #197 (composition comparison with standard boundary names). Implementation and dependency metadata are unchanged.

The PR workflow now runs the existing tests and new unit_tests folder, checks at least 90% statement coverage, and installs a compatible scientific dependency set to avoid current dependency/API and serialized-model incompatibilities. All six existing OS/Python install jobs are retained.

Validation: pytest tests unit_tests --cov=bento --cov-fail-under=90 passed with 141 passed, 3 expected failures and 90.35% statement coverage (1,825/2,020 statements). Focused contract tests, test-file static checks, git diff --check, and dependency compatibility checks passed. Focused suite: 113 passed, 3 expected failures. GitHub Actions run 40273671541 completed successfully on commit 51d0506728db601c06fd759bbc34e1a12e5b42f7, with all six jobs green; the Linux test job independently passed 141 tests / 3 expected failures and the 90% coverage gate.

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