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

testee can't handle failure during mocha test hook #162

Open
nlundquist opened this issue Oct 17, 2017 · 0 comments
Open

testee can't handle failure during mocha test hook #162

nlundquist opened this issue Oct 17, 2017 · 0 comments

Comments

@nlundquist
Copy link

The Mocha reporter (and likely other test frameworks that have similar concepts) can't handle failures that occur during the running of a test hook. For example an exception in a beforeEach handler that will be run before each test in a suite.

The Mocha test framework will stop running when such a failure occurs and emit a fail event that is sent to the Testee backend. The backend throws an error since this is a failure outside of a running test and it assumes all failures are test failures. This error isn't handled and prevents testing from ending, Testee continues running indefinitely waiting for testing to proceed.

Additionally, hook failures should be reported by the Testee reporter but since they aren't handled they are also missing from the test output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant