aboutsummaryrefslogtreecommitdiff
path: root/mingling_ci/src/task/cmd_test.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-18 10:13:39 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-18 10:13:39 +0800
commit8ea8e13f1a6b2a2942b78127e23d6783c5188ca5 (patch)
tree01cc8dde8cb8c90529c8d5f66dc57a08ed7cdc26 /mingling_ci/src/task/cmd_test.rs
parent570b2bc1710c0ab8a68ad69a6121144e4f5e3aca (diff)
refactor(ci-new): generalize report entries from packages to items
Rename package-based terminology and structures to item-based, allowing arbitrary items with associated locations instead of only crate packages. Locations are now carried through report files and included in generated reports, with the fallback to `—` removed.
Diffstat (limited to 'mingling_ci/src/task/cmd_test.rs')
-rw-r--r--mingling_ci/src/task/cmd_test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mingling_ci/src/task/cmd_test.rs b/mingling_ci/src/task/cmd_test.rs
index 3ed193c..5b9f55a 100644
--- a/mingling_ci/src/task/cmd_test.rs
+++ b/mingling_ci/src/task/cmd_test.rs
@@ -9,7 +9,7 @@ use mingling::{
use crate::Next;
use crate::res::{Manifests, ResCrateConfig};
-use crate::task::run::run_parallel_checks;
+use crate::task::run::{location, run_parallel_checks};
#[command(node = "test-all")]
pub async fn test_all(manifests: &Manifests, config: &ResCrateConfig) -> Next {
@@ -21,7 +21,7 @@ pub async fn test_all(manifests: &Manifests, config: &ResCrateConfig) -> Next {
|| test_args(path),
|cmd| cmd.iter().map(|s| OsString::from(s.as_str())).collect(),
);
- (name.clone(), args)
+ (name.clone(), location(path), args)
})
.collect();
let fail_count = run_parallel_checks("Test-All", "Testing", tasks).await;