我想使用TestCafe执行自动化测试,但在使用以下命令进行测试时遇到此错误。
testcafe chrome testc.ts
我使用此命令来测试 Angular 应用程序中的 testc.ts 文件,并在我的项目中全局安装了 TestCafe。
我有最新的Angular CLI、node 和 npm。
这是我的测试代码和用于运行 TestCafe 的命令的屏幕截图:
最佳答案
看起来您没有传递正确的文件路径。试试这个:
testcafe chrome src/testc.ts
关于javascript - TestCafe错误: "No tests to run. Either the test files contain no tests or the filter function is too restrictive",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57035057/