-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Detect test failures from test code? #1139
Comments
WD cleverly tracks each test's state in test land, and remembers if any failed. Trouble is, failures in |
Also ran into this problem while creating an |
Failures in Was this specific case intended by the symmetrical hooks change? #1043 |
there's no good way to do it within a test. but it could/should be done in a reporter. @EndangeredMassa that's how it was written, if before fails then it doesn't make sense to run beforeEach and then it doesn't make sense to run afterEach imo. i'm gonna close this. the multiple reporters way would be best. |
Is there a way to detect if any test has failed from within test code?
I'd use this to keep chromedriver's browser open if a test failed, and to report success or failure to sauce labs after tests run. I could see pulling saucelabs reporting out into a reporter using multiple reporters #930, but keeping chromedriver open makes most sense in test code, where we launch the browser.
Runner and Reporters have the info I'm looking for as
stats
but I'm not sure how to get to them from within a test file.The text was updated successfully, but these errors were encountered: