diff options
author | Mark Ladyshau <47859603+mrkldshv@users.noreply.github.com> | 2022-06-14 20:51:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 20:51:49 +0200 |
commit | d4f609d8e7b8a9dd3a3a9d289936a4eb706c037f (patch) | |
tree | ec7bd2c2cd0168dde2709ef86b3081f7d1965157 /cli/tests/integration/watcher_tests.rs | |
parent | e1d488ab886ac19716e2b51c3ce1cebef163db8f (diff) |
feat(test): update test summary report (#14629)
Diffstat (limited to 'cli/tests/integration/watcher_tests.rs')
-rw-r--r-- | cli/tests/integration/watcher_tests.rs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/cli/tests/integration/watcher_tests.rs b/cli/tests/integration/watcher_tests.rs index cff0e8f44..046dcec07 100644 --- a/cli/tests/integration/watcher_tests.rs +++ b/cli/tests/integration/watcher_tests.rs @@ -815,10 +815,7 @@ fn test_watch() { let (mut stdout_lines, mut stderr_lines) = child_lines(&mut child); assert_eq!(stdout_lines.next().unwrap(), ""); - assert_contains!( - stdout_lines.next().unwrap(), - "0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out" - ); + assert_contains!(stdout_lines.next().unwrap(), "0 passed | 0 failed"); wait_contains("Test finished", &mut stderr_lines); let foo_file = t.path().join("foo.js"); @@ -912,7 +909,7 @@ fn test_watch() { assert_contains!(stderr_lines.next().unwrap(), "Restarting"); assert_contains!(stdout_lines.next().unwrap(), "running 1 test"); assert_contains!(stdout_lines.next().unwrap(), "FAILED"); - wait_contains("test result", &mut stdout_lines); + wait_for(|m| m.contains("FAILED"), &mut stdout_lines); stdout_lines.next(); wait_contains("Test finished", &mut stderr_lines); @@ -959,10 +956,7 @@ fn test_watch_doc() { let (mut stdout_lines, mut stderr_lines) = child_lines(&mut child); assert_eq!(stdout_lines.next().unwrap(), ""); - assert_contains!( - stdout_lines.next().unwrap(), - "0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out" - ); + assert_contains!(stdout_lines.next().unwrap(), "0 passed | 0 failed"); wait_contains("Test finished", &mut stderr_lines); let foo_file = t.path().join("foo.ts"); |