[英]Run tests with js wdio test runner via WebStorm IDE
I'm trying to build a test framework using mocha + webdriver.io .我正在尝试使用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.
我选择了wdio 测试运行器,所有测试都通过CLI运行良好,但我想将WebStorm IDE 配置为在调试模式下运行单个测试,但无法理解如何进行。
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 不直接支持此功能,我需要使用有效参数配置默认的 Node.js 运行,以便使用我的测试用例触发 wdio runner。
Check https://alippai.github.io/ for a brief guide.检查https://alippai.github.io/以获取简要指南。 It's running the tests with the mocha executable instead of the default wdio .
它使用mocha可执行文件而不是默认的wdio运行测试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.