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

Test build are passing even though tests are failing, failed test screenshots are missing #14

Open
vaijeyanthi-qa opened this issue Feb 21, 2022 · 1 comment

Comments

@vaijeyanthi-qa
Copy link

I'm facing two issues after trying to use: fastlane plugin of xchtmlreport

  1. Since we need to set fail_build: false always, test build are always passing even with failing test results. Also I'm not sure how to see the failed tests and its results out of so many passing tests that I have in my project.
  2. I deliberately failed one of my test and saw that the screenshots are not getting generated in CI.

Do we have fix for this already? Or is there a workaround for the same? Thanks in advance.

@vaijeyanthi-qa vaijeyanthi-qa changed the title Test build are passing even though tests are failing Test build are passing even though tests are failing, failed test screenshots are missing Feb 21, 2022
@simondelphia
Copy link

simondelphia commented Jul 5, 2022

instead of setting fail_build: false you could wrap the tests call in your fastfile with begin followed by an ensure or catch with the call to xchtmlreport (depending on whether you want it to run every time or only when it fails)

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

No branches or pull requests

2 participants