Skip to content

test: replace brittle checks with behavioral coverage - #181

Merged
f0rr0 merged 1 commit into
nextfrom
f0rr0/audit-logic-tests
Sep 29, 2026
Merged

f0rr0 merged 1 commit into
nextfrom
f0rr0/audit-logic-tests

Conversation

@f0rr0

@f0rr0 f0rr0 commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Several tests ran quoted programs in subprocesses, recreated database/framework internals, or only repeated copy and configuration. Replace the useful cases with typed tests of real application functions and route handlers; remove duplicate and superficial checks. The suite is 713 lines smaller, with no application or dependency changes.

Async failures are explicitly awaited, retry times use fixed clocks, and assertions now catch empty chart output and accidental mutation of tracked identities. Keep coverage for privacy/authentication, work ownership and diffs, history boundaries, ingestion retries, metadata decisions and cache warming. No PostgreSQL service is required.

Validation: 284 tests pass normally and in randomized order; typecheck, formatting/lint, both Knip modes and Typst checks pass. Seven temporary mutations covering privacy, cache refreshes, work filtering, snapshot changes, cumulative totals, chart labels and feed regressions were all caught and reverted.

@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
f0rr0-github-io Ready Ready Preview Sep 29, 2026 12:53pm UTC

Base automatically changed from f0rr0/fix-projection-scheduling to next September 29, 2026 12:45
@f0rr0
f0rr0 force-pushed the f0rr0/audit-logic-tests branch from fc0631a to 8cad274 Compare September 29, 2026 12:46
@f0rr0
f0rr0 merged commit 8c4ba3e into next Sep 29, 2026
3 of 4 checks passed
@f0rr0
f0rr0 deleted the f0rr0/audit-logic-tests branch September 29, 2026 12:47

This branch was successfully deployed

1 active deployment
Preview — 8cad2740 Deployed Sep 29, 2026 by vercel[bot]
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