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

Support [profile.default-llvm-cov] #857

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cargo-nextest/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,8 @@ impl App {
// https://github.com/rust-lang/miri/pull/2398#issuecomment-1190747685
if std::env::var_os("MIRI_SYSROOT").is_some() {
NextestConfig::DEFAULT_MIRI_PROFILE
} else if std::env::var_os("CARGO_LLVM_COV").is_some() {
NextestConfig::DEFAULT_LLVM_COV_PROFILE
} else {
NextestConfig::DEFAULT_PROFILE
}
Expand Down
5 changes: 4 additions & 1 deletion nextest-runner/src/config/config_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ impl NextestConfig {
/// The name of the default profile used for miri.
pub const DEFAULT_MIRI_PROFILE: &'static str = "default-miri";

/// The name of the default profile used for cargo-llvm-cov
pub const DEFAULT_LLVM_COV_PROFILE: &'static str = "default-llvm-cov";

/// A list containing the names of the Nextest defined reserved profile names.
pub const DEFAULT_PROFILES: &'static [&'static str] =
&[Self::DEFAULT_PROFILE, Self::DEFAULT_MIRI_PROFILE];
&[Self::DEFAULT_PROFILE, Self::DEFAULT_MIRI_PROFILE, Self::DEFAULT_LLVM_COV_PROFILE];

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