Skip to content

Conversation

@bugadani
Copy link
Contributor

For one, the readme showcases code that adds #[cfg(test)] above #[embedded_test::tests] so users (us :D ) already think it's necessary.

The other reason for this PR is a bit more nuanced.

cargo build --test xy --artifact-dir place-the-test-here doesn't work. This prevents us from using cargo-batch to build tests in one go (or, well, fewer than 50 gos). However, the cfg prevents us from turning the test binaries into "real" binaries, where everything just works.

@bugadani bugadani changed the title Remove the test cfg Remove the test cfg gate Sep 12, 2025
@t-moe
Copy link
Contributor

t-moe commented Sep 13, 2025

This feels like a hack, but if it simplifies stuff on your end I will give in.

@t-moe t-moe merged commit b1d3fa0 into next Sep 13, 2025
14 checks passed
@bugadani bugadani deleted the no-cfg branch September 13, 2025 13:41
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.

3 participants