Skip to content
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

Append screenshots only on falied tests #207

Open
irapths opened this issue Jan 3, 2025 · 0 comments
Open

Append screenshots only on falied tests #207

irapths opened this issue Jan 3, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@irapths
Copy link

irapths commented Jan 3, 2025

Is your feature request related to a problem? Please describe.

We use cypress-mochawesome-reporter to generate report with videos (using the videoOnFailOnly parameter). Moreover we append execution info and logs (generated by cypress-terminal-report) as custom test context to failed tests.
Because of the large number of tests we rely on the "additional test context icon" on the right side of the report line, next to execution time, to check for failed tests. (Yes there is the filter button but then you miss the context of the test suite and is not very convenient for us in all cases)

Lately, we are starting to implement visual tests (using cypress-visual-regression). In order for the verifications to work screenshots are taken.
Screenshots are appended to each test in report without any effort, thanks to your great work :) , to any test that has one.

Unfortunately, and because of the visual tests, all the tests have at least one screenshot witch results to the "additional test context icon" to be placed to all of them.

Describe the solution you'd like

A way to enable/allow the addition of screenshots only on failed tests, like the videoOnFailOnly parameter (#141).

Describe alternatives you've considered

Additional context

@irapths irapths added the enhancement New feature or request label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant