简体   繁体   中英

Run tests with js wdio test runner via WebStorm IDE

I'm trying to build a test framework using mocha + webdriver.io . I've chosen wdio test runner and all tests are running good via CLI but I want to configure WebStorm IDE to run single test in debug mode and can't understand how to do it.

As I understood there is no WebStorm support for this directly and I need to configure default Node.js run with valid parameters in order to trigger wdio runner with my test case.

WebStorm 配置窗口

The next config is working for me (wdio+jasmine)

截图在这里

Check https://alippai.github.io/ for a brief guide. It's running the tests with the mocha executable instead of the default wdio .

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