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

automatically take screenshots when integration specs fail #553

Merged
merged 2 commits into from
Apr 14, 2020

Conversation

adipasquale
Copy link
Contributor

@adipasquale adipasquale commented Apr 14, 2020

linked to https://trello.com/c/yibIcLXq/601-fix-randomly-failing-feature-specs

this PR makes integration specs take a screenshot (HTML + png) upon each failure.

Locally:

Screenshot 2020-04-14 at 15 59 50

On CircleCI :

Screenshot 2020-04-14 at 15 54 59

cf https://github.com/mattheworiordan/capybara-screenshot/
and mattheworiordan/capybara-screenshot#211 (comment)
and https://circleci.com/docs/2.0/artifacts/

I also fixed the store_test_results directive that was pointing to the wrong directory. It lets us see a formatted view of failing tests on CircleCI:

Screenshot 2020-04-14 at 15 56 18

@adipasquale adipasquale force-pushed the refactor/spec-failures-screenshots branch from 351f667 to 6218ef9 Compare April 14, 2020 13:47
@adipasquale adipasquale marked this pull request as ready for review April 14, 2020 14:00
@adipasquale adipasquale changed the title adding capybara-screenshots to get screenshots when spec fails automatically take screenshots when integration specs fail Apr 14, 2020
@adipasquale adipasquale merged commit c9a7d3c into master Apr 14, 2020
@adipasquale adipasquale deleted the refactor/spec-failures-screenshots branch April 14, 2020 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants