add test for exclude feature
This commit is contained in:
parent
ad74285275
commit
7d1537e425
1 changed files with 14 additions and 0 deletions
|
@ -515,3 +515,17 @@ fn test_explicit_stage() {
|
||||||
assert!(!config.explicit_stage_from_config);
|
assert!(!config.explicit_stage_from_config);
|
||||||
assert!(!config.is_explicit_stage());
|
assert!(!config.is_explicit_stage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_exclude() {
|
||||||
|
let config = parse("build.exclude=[\"test/codegen\"]");
|
||||||
|
|
||||||
|
let first_excluded = config
|
||||||
|
.skip
|
||||||
|
.first()
|
||||||
|
.expect("Expected at least one excluded path")
|
||||||
|
.to_str()
|
||||||
|
.expect("Failed to convert excluded path to string");
|
||||||
|
|
||||||
|
assert_eq!(first_excluded, "test/codegen");
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue