webdriverio: Bail config doesn't work with Jasmine
The problem
Using jasmine, a bail=1 argument seems to have no effect. It always runs the full test suite.
I’ve even tried adding a custom afterTest hook with process.exit(1), but that doesn’t seem to do it either. Neither does throwing and exception.
Environment
- WebdriverIO version: 4.6.2
- Node.js version: 7.7.2
- Testrunner mode
- sync mode
- Additional wdio packages used (if applicable): wdio-jasmine-framework@0.2.19 , jasmine@2.5.3
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (7 by maintainers)
I would expect
bail=1to stop the tests running regardless of the framework (from everything I have read). At a minimum the documentation should say exactly what you did:I’m going to do more experimentation, but it also seems like I should be able to abort all future tests from the
afterEach(and other) hooks. But I haven’t been able to make that work either.