Consolidate integration tests into single bin per crate#662
Merged
Conversation
e3708ed to
a2382af
Compare
farazdagi
reviewed
Apr 10, 2026
Contributor
Author
AFAIU,
|
Each file in tests/ produces a separate binary and link step. Add tests/main.rs entry points and disable auto-discovery so each crate compiles one test binary instead: etl-api: 11 binaries -> 1 etl-destinations: 5 binaries -> 1 etl: 6 binaries -> 1 Metric Before After Change Incremental --tests build 45.5s 25.7s -43% Integration test binaries 22 3 -86% Test binary disk (integ) 3.1 GB 484 MB -84% Clean build 2m 44s 2m 45s ~same
a2382af to
37ae7bc
Compare
farazdagi
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, each file in
tests/produces a separate binary and link step. This addstests/main.rsentry points for each crate and disables auto-discovery so each crate compiles one test binary instead.main__prefix).cargo test -p etl-api --test main -- destinations::.Measured impact (clean builds, back-to-back, same machine)
--testsbuild