Skip to content

Commit

Permalink
Specify --tests when calling cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
kylefleming committed Jul 31, 2020
1 parent 9cb5f7f commit d940e08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Notes:
# * The new resolver has a bug that causes packages to select features non-deterministically under
# certain circumstances. To work around this, `--target` must be specified when using cargo. This
# can be removed once the bug is fixed.
# can be removed once the bug is fixed. Similarly, `--tests` must be specified when using
# `cargo test` so that non-test profile builds don't bleed over.
# See: [MC-1731] and https://github.com/rust-lang/cargo/issues/8549

version: 2.1
Expand Down Expand Up @@ -265,7 +266,7 @@ commands:
parameters:
test_command:
type: string
default: cargo test --frozen --target "$HOST_TARGET_TRIPLE"
default: cargo test --frozen --target "$HOST_TARGET_TRIPLE" --tests
steps:
- run:
name: Run all tests
Expand Down

0 comments on commit d940e08

Please sign in to comment.