Skip to content

Extract shared test infrastructure into common module#57

Merged
xumaple merged 2 commits intomainfrom
xumaple/copilot/test-refactor
Apr 11, 2026
Merged

Extract shared test infrastructure into common module#57
xumaple merged 2 commits intomainfrom
xumaple/copilot/test-refactor

Conversation

@xumaple
Copy link
Copy Markdown
Owner

@xumaple xumaple commented Apr 4, 2026

Summary

  • Moves shared test infra (RT, APP, app(), TestUser, WithAuth, parse_json, body_string, run) into tests/common/mod.rs
  • integration_tests.rs now uses mod common; and imports from it
  • No behavioral changes — same 19 integration tests, same 32 unit tests
  • Enables upcoming PRs (locks, metrics) to add new test files that reuse the common infra without duplication

Test plan

  • Clippy clean
  • 19 integration tests pass
  • 32 unit tests pass

🤖 Generated with Claude Code

Move RT, APP, app(), TestUser, WithAuth, and helpers into
tests/common/mod.rs so new test files can reuse them without
duplicating boilerplate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 4, 2026

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

Project Deployment Actions Updated (UTC)
website Ready Ready Preview, Comment Apr 4, 2026 11:46pm

Modern Rust convention — no mod.rs files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@xumaple xumaple merged commit 1922868 into main Apr 11, 2026
5 checks passed
@xumaple xumaple deleted the xumaple/copilot/test-refactor branch April 11, 2026 00:02
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