Skip to content

Drop unit tests the acceptance suite already covers - #83

Merged
jon-devlapaz merged 1 commit into
mainfrom
cursor/drop-low-signal-unit-tests-44e8
Sep 25, 2026
Merged

jon-devlapaz merged 1 commit into
mainfrom
cursor/drop-low-signal-unit-tests-44e8

Conversation

@jon-devlapaz

Copy link
Copy Markdown
Owner

Summary

Acceptance tests are the behavior sensors. In-module unit tests that only repeated those rows, or that restated formatting and happy-path copies, are removed (about 1,600 lines).

Unit tests that still catch a bug acceptance does not assert stay in place: rollback and orphan retention, digest framing and file mode, symlink and special-file boundaries, and updater parser, digest, and archive checks.

AGENTS.md already states the testing rules for future agents:

  • Never write unit tests after you write code.
  • Highly prefer E2E tests as the sole testing mechanism. Use them to verify complex features work. At the end of E2E tests, produce a verifiable and repeatable artifact.
  • If you must test a system in isolation, first write down all the ways it could fail, then write the code.

docs/TESTING.md now points at the sensors that remain.

Test plan

  • cargo test --lib --locked --offline — 50 remaining unit tests passed
  • cargo test --test acceptance_traceability --test workflow_contract --locked --offline — passed
  • cargo fmt --all -- --check and cargo clippy --workspace --all-targets --locked --offline -- -D warnings — passed
  • cargo test --tests --locked --offline --no-run — acceptance binary compiled
Open in Web Open in Cursor 

Keep isolation tests that pin rollback, digest framing, symlink, and updater failures the E2E suite does not assert. Point the testing map at the sensors that remain.

Co-authored-by: jon <jonathan10620.dev@gmail.com>
@jon-devlapaz
jon-devlapaz force-pushed the cursor/drop-low-signal-unit-tests-44e8 branch from 13c6a3f to 804f36e Compare September 25, 2026 23:05
@jon-devlapaz
jon-devlapaz marked this pull request as ready for review September 25, 2026 23:05
@jon-devlapaz
jon-devlapaz merged commit bcbdb1c into main Sep 25, 2026
6 checks passed
@jon-devlapaz
jon-devlapaz deleted the cursor/drop-low-signal-unit-tests-44e8 branch September 25, 2026 23:05
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.

2 participants