You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.
Failures in before hooks cancel the entire sub-suite to which they are attached. It will run after hooks, but not afterEach. I'm not sure if that is the intent, though. mochajs/mocha#1043
I tried setting up a global beforeEach hook to save the test context and grab a screenshot if the previous test context still existed (implying the after hook didn't fire), but before hooks are called (and failed in this use case) before beforeEach hooks.
We can't wrap before with special handling because mocha redefines it's globals in between each file.
It looks like the only fix is to change mocha itself. I am hoping that mochajs/mocha#1139 gets some attention.
When tests fail, testium saves screenshots. Unfortunately the same does not happen for
before
blocks which makes debugging them pretty hard.The text was updated successfully, but these errors were encountered: