简体   繁体   English

通过 WebStorm IDE 使用 js wdio 测试运行器运行测试

[英]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。

WebStorm 配置窗口

The next config is working for me (wdio+jasmine)下一个配置对我有用(wdio+jasmine)

截图在这里

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.

相关问题 从WebStorm运行Jasmine测试 - Run Jasmine tests from WebStorm 在测试运行程序中触发Karma测试 - Triggering Karma tests in the test runner Mocha测试运行器 - 仅重新运行以前运行的失败测试的选项 - Mocha test runner - option to rerun only failed tests from previous run 使用global.expect进行Webstorm IDE和Mocha测试 - Webstorm IDE and mocha tests using global.expect Webstorm Karma测试运行程序无法与Yeoman一起使用 - Webstorm Karma Test Runner Not Working with Yeoman angular-fullstack 在R#测试运行程序中运行之前,如何使用Babel翻译JS测试? - How to translate JS tests with Babel before running in R# test runner? karma 测试运行程序没有运行任何测试 - karma test runner not running any tests 错误@wdio/local-runner:启动测试 session 失败:错误:在 DevToolsDriver.getPageHandle 找不到页面句柄 - ERROR @wdio/local-runner: Failed launching test session: Error: Couldn't find page handle at DevToolsDriver.getPageHandle 如何在 Idea / WebStorm IDE 上运行来自 HackerRank 的 JavaScript 解决方案? - How to run a JavaScript solution from HackerRank on Idea / WebStorm IDE? 错误@wdio/runner:错误:无法创建 session - ERROR @wdio/runner: Error: Failed to create session
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM