use std::path::PathBuf;
use testing_conventions::config::load_config;
fn fixtures() -> PathBuf {
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures")
}
#[test]
fn a_rust_features_list_is_part_of_the_config_schema() {
let config = load_config(fixtures().join("unit_coverage/rust_features_full.toml"))
.expect("the `features` key should parse");
assert_eq!(
config.rust.expect("the [rust] table should load").features,
vec!["boost".to_string()]
);
}
#[test]
fn a_rust_features_list_parses_without_a_coverage_table() {
let config = load_config(fixtures().join("unit_mutation/rust_features.toml"))
.expect("the `features` key should parse");
assert_eq!(
config.rust.expect("the [rust] table should load").features,
vec!["boost".to_string()]
);
}