Skip to content

Commit 14c2165

Browse files
feat(triage): add total test and subtest counts
1 parent aa82c1f commit 14c2165

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

moz-webgpu-cts/src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,13 @@ fn run(cli: Cli) -> ExitCode {
564564
}
565565
}
566566

567+
let test_count = u64::try_from(tests_by_name.len()).unwrap();
568+
let subtest_count = tests_by_name
569+
.values()
570+
.map(|test| u64::try_from(test.inner.subtests.len()).unwrap())
571+
.sum::<u64>();
567572
let mut analysis = Analysis::default();
573+
568574
for (test_name, test) in tests_by_name {
569575
let TaggedTest {
570576
orig_path: _,
@@ -773,6 +779,7 @@ fn run(cli: Cli) -> ExitCode {
773779
}
774780
}
775781
log::info!("finished analysis, printing to `stdout`…");
782+
println!("Total: {test_count} test(s), {subtest_count} subtest(s)");
776783
analysis.for_each_platform(|platform, analysis| {
777784
let show_zero_count_item = match on_zero_item {
778785
OnZeroItem::Show => true,

0 commit comments

Comments
 (0)