Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
test_runner: emit 'test:restarted' event when tests are restarted#59115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
test_runner: emit 'test:restarted' event when tests are restarted#59115
Conversation
emit a 'test:restarted' event from the test runner when a test file isrestarted due to file changes, if a timestamp reporter is present.this allows custom reporters to handle test restart events for loggingor other behaviors.
add a timeStamp() method to tests_stream that emits a custom'test:restarted' event when invoked. this allows reporters tolog timestamped messages on test restarts.Fixes:nodejs#57206
add a test that verifies the timeStamp event emitter triggerscorrectly when a test file is restarted. this ensures thetest_runner emits the 'test:restarted' event as expected.Fixes:nodejs#57206
Review requested:
|
Description Summary of changes: test_runner/tests_stream.js: test/parallel/test-runner-restart-timestamp.js: |
@@ -0,0 +1,23 @@ | |||
'use strict'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
'use strict'; | |
// Flags: --expose-internals | |
'use strict'; |
Uh oh!
There was an error while loading.Please reload this page.
Refs:#57206