简体   繁体   English

在WebStorm中运行TestCafe需要什么配置

[英]What configuration do I need to run TestCafe in WebStorm

I would like to run/debug TestCafe tests using WebStorm. 我想使用WebStorm运行/调试TestCafe测试。 Does anyone have a suggested configuration I need to do this? 有没有人有我需要这样做的建议配置?

https://i.stack.imgur.com/7nHP8.png

WebStorm doesn't provide any special support for TestCafe (if you miss it, please vote for WEB-30315 ); WebStorm不为TestCafe提供任何特殊支持(如果您错过了,请投票支持WEB-30315 ); but you can use VS Code instructions to run/debug in WebStorm. 但您可以使用VS Code指令在WebStorm中运行/调试。 Namely, you need Node.js Run configuration like the following: 也就是说,您需要Node.js运行配置,如下所示:

在此输入图像描述

where JavaScript file: is set to a path to your locally installed testcafe module, eg node_modules\\testcafe\\bin\\testcafe.js , and Application parameters: are testcafe cli args, like chrome myTestFile.js 其中JavaScript文件:设置为本地安装的testcafe模块的路径,例如node_modules\\testcafe\\bin\\testcafe.jsApplication参数:是testcafe cli args,比如chrome myTestFile.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WebStorm中基于CucumberJS和TestCafe的项目中的调试配置 - Debug Configuration in WebStorm for CucumberJS and TestCafe based project 测试咖啡馆 electron mainWindowUrl | 如何处理 tmp 位置 - testcafe electron mainWindowUrl | what to do with tmp location 我如何在 TestCafe 中全局处理错误 - How Do I Handle Errors Globally in TestCafe 我如何在 testcafe 的选择器中使用通配符 - How do i use wildcards in selectors in testcafe 我如何处理 testcafe 中的 javascript 错误 - How do I handle javascript error in testcafe TestCafe:如何让 TestCafe 在所有固定装置之前只运行一次应用程序代码 - TestCafe : How can I make TestCafe to run some application code only once before all the fixtures 错误:没有选择要运行的浏览器,但我在 .testcafe.json 中提到了它 - error: no browser selected to run against, but i mentioned it in .testcafe.json TestCafe Studio:如何导入 ES 模块以便在 TestCafe 脚本中使用它们? - TestCafe Studio: How do I import ES modules so I can use them in a TestCafe Script? 我可以使用未使用的 Typescript 页面对象运行 TestCafe 测试吗 - Can I run TestCafe tests with unused Typescript page objects 如何设置 TestCafe 以在 CLI 中指定的环境中运行? - How can I set up TestCafe to run on an environment specified in the CLI?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM