-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_runner: add 'test:summary' event #54851
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #54851 +/- ##
==========================================
- Coverage 88.03% 88.02% -0.01%
==========================================
Files 652 652
Lines 183797 183822 +25
Branches 35863 35868 +5
==========================================
+ Hits 161804 161813 +9
- Misses 15242 15259 +17
+ Partials 6751 6750 -1
|
I've added the |
Added
semver-major
|
The original implementation that changed the process exit code was semver major. I removed that change, so this is only semver minor now |
Can we make it non-breaking by detecting if there is a summary listener and if not reverting to the old behavior? I think having this as a major would significantly impact the ability to backport certain fixes to v20 and v22. |
This change is no longer breaking. Do you mean the setting of the exit code? Yes, we could do that - I think I'd prefer to do that in a separate PR though. |
For whatever reason I didn't see the last couple of messages, nevermind! |
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.
lgtm
This commit adds a new 'test:summary' event to the test runner's reporting interface. This new event serves two purposes: - In the future, the test runner internals will no longer need to change the process exit code. This may be important to run() users. Unfortunately, this is a breaking change, so it needs to be changed in a major version. - The reporting interface now has a single event that can identify passing or failing test runs. Refs: nodejs#53867 Refs: nodejs#54812
Rebased to pick up the latest changes and renamed |
No. |
This needs a re-approval in order to land. The CI is good. |
Oh okay, I thought that that didn't happen with this change. My bad. I'll probably open a followup (breaking?) PR to change that after this. |
This commit adds a new 'test:summary' event to the test runner's reporting interface. This new event serves two purposes:
Refs: #53867
Refs: #54812
(Still need to add docs)