reportportal / agent-js-jest

Agent to integrate Jest with ReportPortal.
https://www.npmjs.com/package/@reportportal/agent-js-jest
Apache License 2.0
21 stars 36 forks source link

extendTestDescriptionWithLastError option #136

Closed PodarDelia closed 2 months ago

PodarDelia commented 8 months ago

Hello!

For agent-js-playwright there is extendTestDescriptionWithLastError option. It can be added here too? Option description: If set to true the last error log will be attached to the test case description and reported on the error log level

Thanks!

AmsterGet commented 8 months ago

Hello @PodarDelia ! Thanks for your request! Technically this is possible and I have already added the task to our backlog! Could you describe your use case? If I understand correctly, you prefer to view the latest error log without drilling down to the test case log level. We just want to understand if it is useful to keep this or similar functionality in future versions of ReportPortal.

PodarDelia commented 7 months ago

Here is a screenshot from our playwright project where the Error is visible in description Screenshot 2024-01-23 at 13 46 23

Here is a screenshot from our jest project where the error is not visible and I have to click on test to see the issue Screenshot 2024-01-23 at 13 47 07

It is easier to see all the errors on one page than clicking on every failed tests to see the error. When there are a lot of tests that are failing it is very useful to see an overview of the results.

AmsterGet commented 2 months ago

Hello @PodarDelia ! Released in version 5.1.0. Please check it out.