Skip to content

Commit 500b9d2

Browse files
committed
Support [profile.default-llvm-cov]
Depends on taiki-e/cargo-llvm-cov#259 This is done similarly for miri and makes sense since both increase running times.
1 parent 99a5f42 commit 500b9d2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cargo-nextest/src/dispatch.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,8 @@ impl App {
11281128
// https://github.com/rust-lang/miri/pull/2398#issuecomment-1190747685
11291129
if std::env::var_os("MIRI_SYSROOT").is_some() {
11301130
NextestConfig::DEFAULT_MIRI_PROFILE
1131+
} else if std::env::var_os("CARGO_LLVM_COV").is_some() {
1132+
NextestConfig::DEFAULT_LLVM_COV_PROFILE
11311133
} else {
11321134
NextestConfig::DEFAULT_PROFILE
11331135
}

nextest-runner/src/config/config_impl.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,12 @@ impl NextestConfig {
7373
/// The name of the default profile used for miri.
7474
pub const DEFAULT_MIRI_PROFILE: &'static str = "default-miri";
7575

76+
/// The name of the default profile used for cargo-llvm-cov
77+
pub const DEFAULT_LLVM_COV_PROFILE: &'static str = "default-llvm-cov";
78+
7679
/// A list containing the names of the Nextest defined reserved profile names.
7780
pub const DEFAULT_PROFILES: &'static [&'static str] =
78-
&[Self::DEFAULT_PROFILE, Self::DEFAULT_MIRI_PROFILE];
81+
&[Self::DEFAULT_PROFILE, Self::DEFAULT_MIRI_PROFILE, Self::DEFAULT_LLVM_COV_PROFILE];
7982

8083
/// Reads the nextest config from the given file, or if not specified from `.config/nextest.toml`
8184
/// in the workspace root.

0 commit comments

Comments
 (0)