diff options
| author | Ralf Jung <post@ralfj.de> | 2023-03-21 09:24:57 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-03-21 09:24:57 +0100 |
| commit | 4bfde41afa31aa957a80f39e782062834a0dc583 (patch) | |
| tree | e560ed4646bc001322d9bfa3f1ad38f16e39fa2e /library/test/src/formatters/junit.rs | |
| parent | 2be2568a54540a8ddf2c9c77a20ec73b018b45cc (diff) | |
| parent | 204807d8a93041f9ef69cc2a69646fe1020f4c9c (diff) | |
| download | rust-4bfde41afa31aa957a80f39e782062834a0dc583.tar.gz rust-4bfde41afa31aa957a80f39e782062834a0dc583.zip | |
Merge from rustc
Diffstat (limited to 'library/test/src/formatters/junit.rs')
| -rw-r--r-- | library/test/src/formatters/junit.rs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/library/test/src/formatters/junit.rs b/library/test/src/formatters/junit.rs index 7a40ce33cb7..2e07ce3c099 100644 --- a/library/test/src/formatters/junit.rs +++ b/library/test/src/formatters/junit.rs @@ -3,7 +3,7 @@ use std::time::Duration; use super::OutputFormatter; use crate::{ - console::{ConsoleTestState, OutputLocation}, + console::{ConsoleTestDiscoveryState, ConsoleTestState, OutputLocation}, test_result::TestResult, time, types::{TestDesc, TestType}, @@ -27,6 +27,18 @@ impl<T: Write> JunitFormatter<T> { } impl<T: Write> OutputFormatter for JunitFormatter<T> { + fn write_discovery_start(&mut self) -> io::Result<()> { + Err(io::Error::new(io::ErrorKind::NotFound, "Not yet implemented!")) + } + + fn write_test_discovered(&mut self, _desc: &TestDesc, _test_type: &str) -> io::Result<()> { + Err(io::Error::new(io::ErrorKind::NotFound, "Not yet implemented!")) + } + + fn write_discovery_finish(&mut self, _state: &ConsoleTestDiscoveryState) -> io::Result<()> { + Err(io::Error::new(io::ErrorKind::NotFound, "Not yet implemented!")) + } + fn write_run_start( &mut self, _test_count: usize, |
