Skip to content

Comments

Refactor test scaffolding for capability and recursion suites#58

Open
mgomes wants to merge 6 commits intomasterfrom
mgomes/refactor-tests
Open

Refactor test scaffolding for capability and recursion suites#58
mgomes wants to merge 6 commits intomasterfrom
mgomes/refactor-tests

Conversation

@mgomes
Copy link
Owner

@mgomes mgomes commented Feb 21, 2026

Why

The capability and recursion tests had repeated engine/compile/call boilerplate, which made updates noisy and harder to audit.

This refactor centralizes common test setup while preserving behavioral assertions and coverage.

What changed

  • Added shared test helpers for compile/call/error assertions.
  • Migrated context/events/db/jobqueue/foundations capability tests to helper-based structure.
  • Reduced repeated compile boilerplate in capability contract tests.
  • Refactored recursion tests to helper-based setup.

Validation

  • go test ./... (run after each atomic commit and once at the end)

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