Skip to content

Commit

Permalink
Switching code coverage args
Browse files Browse the repository at this point in the history
--all-targets activates bins, even if they have test = false

Refs rust-lang/cargo#8338
  • Loading branch information
ecton committed May 2, 2022
1 parent 662f38d commit 635a348
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name = "nebari-fuzz"
version = "0.0.0"
publish = false
edition = "2021"
autotests = false

[package.metadata]
cargo-fuzz = true
Expand All @@ -20,3 +19,4 @@ name = "compare_swap"
path = "fuzz_targets/compare_swap.rs"
test = false
doc = false
doctest = false
1 change: 0 additions & 1 deletion nebari/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ arc-bytes = "0.3.2"
nanorand = "0.7.0"
anyhow = "1.0.53"
tempfile = "3.3.0"
bolero = "0.6"
9 changes: 8 additions & 1 deletion xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use khonsu_tools::{
anyhow,
audit::{self},
clap::{self, Parser},
code_coverage::{self},
DefaultConfig,
},
};
Expand Down Expand Up @@ -68,7 +69,7 @@ impl khonsu_tools::Config for Config {
impl khonsu_tools::universal::Config for Config {
type Audit = Self;

type CodeCoverage = DefaultConfig;
type CodeCoverage = Self;
}

impl audit::Config for Config {
Expand All @@ -86,3 +87,9 @@ impl publish::Config for Config {
vec![String::from("nebari")]
}
}

impl code_coverage::Config for Config {
fn cargo_args() -> Vec<String> {
vec![String::from("test"), String::from("--all-features")]
}
}

0 comments on commit 635a348

Please sign in to comment.