feat(8247): a test case is accounted for by what it guards, and the coverage line counts the suite by it
CI & Build / TypeScript typecheck (push) Successful in 37s
CI & Build / Plugin hooks (push) Successful in 17s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m24s
CI & Build / integration (push) Successful in 2m22s
CI & Build / Build & push image (push) Successful in 43s
CI & Build / TypeScript typecheck (push) Successful in 37s
CI & Build / Plugin hooks (push) Successful in 17s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Python tests (push) Successful in 2m24s
CI & Build / integration (push) Successful in 2m22s
CI & Build / Build & push image (push) Successful in 43s
A refresh now stamps a test case `test` when it is linked to something it guards, and withdraws the stamp when its links go; a judgment always wins. A test case linked to nothing stays in the todo, because nothing says what it is for. Specs written as it()/test() calls get one ledger row per file, read whole. The coverage line and card count tests linked, guarding nothing found, and redundant, and the end-of-turn question no longer asks the writer to call a test case a one-off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3035,8 +3035,15 @@ async def unjudged_shapes(
|
||||
async with async_session() as session:
|
||||
rows = (await session.execute(query)).scalars().all()
|
||||
by_key = {(r.path, r.kind, r.symbol): r for r in rows}
|
||||
from grimoire.services.test_guards import is_test_case
|
||||
|
||||
out: list[dict] = []
|
||||
for path, kind, name in wanted:
|
||||
# A test case is accounted for by what it guards: the refresh links
|
||||
# it and stamps it `test`, so the writer is not asked to call it a
|
||||
# one-off.
|
||||
if is_test_case(path, name, kind):
|
||||
continue
|
||||
row = by_key.get((path, kind, name))
|
||||
if row is not None and _is_judged(row):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user