jest icon indicating copy to clipboard operation
jest copied to clipboard

[Feature]: Provide console logs per testcase to reporter

Open cgrabmann opened this issue 1 year ago • 1 comments

🚀 Feature Proposal

Either provide logs of test-case in TestCaseResult or make the information about the test-case where the log was created available in the LogEntry of TestResult.

Motivation

Currently the console buffer is sent to a reporter with the TestResult. This information is not very useful in cases where you want to group the logs per test-case.
It also does not seem trivial to map logs back to test-cases since the LogEntry only contains a complete stacktrace on where the log was sent from and no information during which test-case it was sent.

Because of this it's impossible without some hacks to identify the logs per test-case and report them to some external tool like https://github.com/reportportal/agent-js-jest/issues/55.

Example

No response

Pitch

This enables reporters to give better context to test-execution reports.

cgrabmann avatar Jul 11 '24 13:07 cgrabmann

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.

github-actions[bot] avatar Aug 10 '24 14:08 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

github-actions[bot] avatar Sep 09 '24 14:09 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

github-actions[bot] avatar Sep 09 '24 14:09 github-actions[bot]

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. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

github-actions[bot] avatar Oct 10 '24 00:10 github-actions[bot]