Repository navigation
py-strictcli@v0.46.0
·
55 commits
to main
since this release
Test coverage is declared by the source-tree root: App(source_tree_root=...) replaces test_coverage_dir=, and the coverage state lives in .strictmetadata/.cli-test-coverage/ under it.
Context
selfdoc's .strictmetadata/ layout gives strictcli's files a home under one source-tree root. Removing test_coverage_dir= is breaking, which in 0.x is a minor.
Breaking
- [strictcli] Test coverage is declared by the source-tree root.
App(source_tree_root=...)replacestest_coverage_dir=: the app names the root of its source tree, and strictcli keeps the coverage state in.strictmetadata/.cli-test-coverage/under it, with per-process shard files inshards/(never committed) and the committed manifest inmanifest.json(formerlycoverage/andtest-coverage.json). Coverage is on only when that directory exists at construction.test_coverage_dir=is now refused at registration, namingsource_tree_root. To migrate, move.strictcli/test-coverage.jsonto.strictmetadata/.cli-test-coverage/manifest.json(selfdoc layout migratedoes this) and declare the root instead of the directory.
Fixes
- [strictcli] The README now says where an app's check list belongs: in the app's own package as package data, passed with
checks_path=; strictcli has no standard folder or default path for it.