diff options
| author | Michael Färber <01mf02@gmail.com> | 2024-12-20 10:48:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-20 09:48:17 +0000 |
| commit | df4e6715cf31817878d73286d2d4b1ea1b7afdbb (patch) | |
| tree | 6265db40fc7907454a608120f0b3a20cfce825e1 /tests/src/logger.rs | |
| parent | db06dbf9763d6c610d1f7a267597ecdad309048a (diff) | |
HTML tests (#5594)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests/src/logger.rs')
| -rw-r--r-- | tests/src/logger.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/src/logger.rs b/tests/src/logger.rs index 48bad451..18eefa5f 100644 --- a/tests/src/logger.rs +++ b/tests/src/logger.rs @@ -9,8 +9,8 @@ pub struct TestResult { pub errors: String, /// The info log for this test. pub infos: String, - /// Whether the image was mismatched. - pub mismatched_image: bool, + /// Whether the output was mismatched. + pub mismatched_output: bool, } /// Receives status updates by individual test runs. @@ -19,7 +19,7 @@ pub struct Logger<'a> { passed: usize, failed: usize, skipped: usize, - mismatched_image: bool, + mismatched_output: bool, active: Vec<&'a Test>, last_change: Instant, temp_lines: usize, @@ -34,7 +34,7 @@ impl<'a> Logger<'a> { passed: 0, failed: 0, skipped, - mismatched_image: false, + mismatched_output: false, active: vec![], temp_lines: 0, last_change: Instant::now(), @@ -73,7 +73,7 @@ impl<'a> Logger<'a> { self.failed += 1; } - self.mismatched_image |= result.mismatched_image; + self.mismatched_output |= result.mismatched_output; self.last_change = Instant::now(); self.print(move |out| { @@ -102,8 +102,8 @@ impl<'a> Logger<'a> { eprintln!("{passed} passed, {failed} failed, {skipped} skipped"); assert_eq!(selected, passed + failed, "not all tests were executed successfully"); - if self.mismatched_image { - eprintln!(" pass the --update flag to update the reference images"); + if self.mismatched_output { + eprintln!(" pass the --update flag to update the reference output"); } self.failed == 0 |
