简体   繁体   中英

How to use Mocha testrunner instead of built-in

I'm creating e2e test using WebdriverIO. As I understand test-runner calling sequence is smth like NPM (package.json) -> WDIO (wdio.conf.js) -> Mocha (via "wdio-mocha-framework")

As far as i know, Wdio is designed for using built-in test-runner. But is there way for call wdio from mocha? This is needed for debug in IDE and run test separately.

You can use ' standalone ' mode to require the test runner via Mocha.

There are a bunch of examples of standalone mode on their github page .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM