-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Feature]: report beginning of every test
or it
via reporter API
#13112
Comments
@SimenB What do you think? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Bad robot. |
Happy to take a PR adding this! 🙂 |
Hey @SimenB, I have made a pull request to implement this feature request. Could you please suggest who I should ask for a review? Thanks 🙏 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🚀 Feature Proposal
Now Reporter API reports the result of every
test
orit
, but there are no events for beginning of eachtest
orit
.Related discussion in #6616
Motivation
Reporting the beginning of each
test
/it
would allow external tools (like IDEs) to provide more fine-grained support for test trees. For example, it would allow to attach test output (e.g. produced by console.log) properly to test nodes. Right now all the output wrongly goes to an ancestor node corresponing to the test file containingtest
/it
.In particular, it would allow to fix https://youtrack.jetbrains.com/issue/WEB-53839.
For example, here is how it looks when running with jest@28 the following test file
when
foo
orbar
test nodes are selected, no output is shown:Here is how it's expected to work (captured with jest@27 and
"testRunner": "jasmine2"
):Example
No response
Pitch
Looks like some changes in jest-circus and jest-reporter are needed.
The text was updated successfully, but these errors were encountered: