feat(libtest): Add JUnit formatter
This commit is contained in:
parent
58bdb08947
commit
38485a9e34
5 changed files with 150 additions and 5 deletions
|
@ -10,7 +10,7 @@ use super::{
|
|||
cli::TestOpts,
|
||||
event::{CompletedTest, TestEvent},
|
||||
filter_tests,
|
||||
formatters::{JsonFormatter, OutputFormatter, PrettyFormatter, TerseFormatter},
|
||||
formatters::{JsonFormatter, JunitFormatter, OutputFormatter, PrettyFormatter, TerseFormatter},
|
||||
helpers::{concurrency::get_concurrency, metrics::MetricMap},
|
||||
options::{Options, OutputFormat},
|
||||
run_tests,
|
||||
|
@ -277,6 +277,7 @@ pub fn run_tests_console(opts: &TestOpts, tests: Vec<TestDescAndFn>) -> io::Resu
|
|||
Box::new(TerseFormatter::new(output, opts.use_color(), max_name_len, is_multithreaded))
|
||||
}
|
||||
OutputFormat::Json => Box::new(JsonFormatter::new(output)),
|
||||
OutputFormat::Junit => Box::new(JunitFormatter::new(output)),
|
||||
};
|
||||
let mut st = ConsoleTestState::new(opts)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue