feat: run ignored tests

This commit is contained in:
Hannes De Valkeneer
2020-04-22 22:52:12 +02:00
parent 3f1f3a835a
commit 380a2870c7
3 changed files with 38 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ impl CargoTargetSpec {
let mut args = Vec::new();
let mut extra_args = Vec::new();
match kind {
RunnableKind::Test { test_id } => {
RunnableKind::Test { test_id, attr } => {
args.push("test".to_string());
if let Some(spec) = spec {
spec.push_to(&mut args);
@@ -33,6 +33,9 @@ impl CargoTargetSpec {
extra_args.push("--exact".to_string());
}
extra_args.push("--nocapture".to_string());
if attr.ignore {
extra_args.push("--ignored".to_string())
}
}
RunnableKind::TestMod { path } => {
args.push("test".to_string());