]> git.proxmox.com Git - cargo.git/commit
Add unit test checking to `cargo check`
authorEric Huss <eric@huss.org>
Sat, 7 Oct 2017 16:28:34 +0000 (09:28 -0700)
committerEric Huss <eric@huss.org>
Sun, 15 Oct 2017 01:41:17 +0000 (18:41 -0700)
commit235712f5998d223895282e5e52b228808ac02f13
tree60105d244d0b9e0d38b53103eff9ace7d9e32348
parentc1dd25a915ebe4456e83a568330a3dd00a5be12a
Add unit test checking to `cargo check`

- Add `--profile test` flag to `cargo check` that will enable checking of unit tests.
- `--tests` will implicitly enable checking of unit tests within the lib.
- Don't implicitly compile binaries when using just `--test` filters.
- Fix erroneously linking tests when run with `--test`.

Fixes #3431, #4003, #4059, #4330.
src/bin/check.rs
src/bin/rustc.rs
src/cargo/core/manifest.rs
src/cargo/core/workspace.rs
src/cargo/ops/cargo_clean.rs
src/cargo/ops/cargo_compile.rs
src/cargo/ops/cargo_rustc/context.rs
src/cargo/util/toml/mod.rs
tests/cargotest/install.rs
tests/check.rs