Skip to content

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 17, 2025

This PR extracts out the integration suite into its own test target so editing tests no longer forces a library rebuild.

This effectively reverts #9521, but since then we have extracted a lot of code into workspace crates, including some of the test helpers, which makes this a lot more viable.

The main goal of this PR is to improve (re)compile times, and from some basic testing it looks like that was achieved.

Move integration tests from `#[cfg(test)] mod tests` blocks in source
files to consolidated test modules under `src/tests/`. This improves
code organization and prepares for separating test compilation from
library compilation.

Moved tests:
- Route handlers → `src/tests/routes/`
- Worker jobs → `src/tests/worker/`

All tests continue to compile as part of the library. Snapshots have
been migrated to match new test locations.
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Oct 17, 2025
This achieves the primary goal: modifying test files no longer triggers
library recompilation, significantly improving incremental test iteration.
@Turbo87 Turbo87 force-pushed the back-to-integration-tests branch from 94e3245 to 35b7e51 Compare October 17, 2025 21:02
@Turbo87 Turbo87 enabled auto-merge October 17, 2025 21:05
@Turbo87 Turbo87 merged commit 3c277f4 into rust-lang:main Oct 17, 2025
10 checks passed
@Turbo87 Turbo87 deleted the back-to-integration-tests branch October 17, 2025 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant