Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Run cargo test without all-targets #1118

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

caspermeijn
Copy link
Collaborator

Running cargo test --all-targets will not run doctests, as noted in the removed comments.

Another effect is that Cargo.toml instructions for not running a test are ignored. For example, benchmarks are tested, but no unit tests are inside and bins marked with test = false are run.

I diffed the text output of running cargo test and cargo test --all-targets and concluded that no useful test will be skipped when running just cargo test.

Running `cargo test --all-targets` will not run doctests, as noted in the removed comments.

Another effect is that Cargo.toml instructions for not running a test are ignored. For example, benchmarks are tested, but no unit tests are inside and bins marked with `test = false` are run.

I diffed the text output of running `cargo test` and `cargo test --all-targets` and concluded that no useful test will be skipped when running just `cargo test`.
@caspermeijn caspermeijn added this pull request to the merge queue Aug 12, 2024
Merged via the queue into tokio-rs:master with commit d38072f Aug 12, 2024
16 checks passed
@caspermeijn caspermeijn deleted the ci_test branch August 12, 2024 11:59
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