Skip to content

Commit 22a7aef

Browse files
committed
Begin to separate reporters
1 parent 9eab7d7 commit 22a7aef

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

fontspector-cli/src/main.rs

+9-3
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,18 @@ fn main() {
143143
.collect();
144144

145145
let worst_status = worst_status(&results);
146-
147-
// Organise results by testable and sectionname
148146
let organised_results = organize(results);
149147

148+
let mut reporters: Vec<Box<dyn Reporter>> = vec![];
149+
if !args.quiet {
150+
reporters.push(Box::new(TerminalReporter {}));
151+
}
152+
153+
for reporter in reporters {
154+
reporter.report(&organised_results, &args, &registry);
155+
}
156+
150157
if !args.quiet {
151-
TerminalReporter {}.report(&organised_results, &args, &registry);
152158
// Summary report
153159
let summary = summary_results(organised_results);
154160
print!("\nSummary:\n ");

0 commit comments

Comments
 (0)