最佳答案
WebStorm 不提供对TestCafe 的任何特殊支持(如果你错过了,请投票给WEB-30315);但你可以使用 VS Code instructions在 WebStorm 中运行/调试。即,您需要 Node.js运行配置如下:
其中 JavaScript 文件: 设置为本地安装的 testcafe 模块的路径,例如node_modules\testcafe\bin\testcafe.js
和Application parameters: 是testcafe cli args,比如chrome myTestFile.js
关于testing - 在 WebStorm 中运行 TestCafe 需要什么配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52944207/