TestCafe Error: "No tests to run. Either the test files contain no tests or the filter function is too restrictive"
TestCafe Error: "No tests to run. Either the test files contain no tests or the filter function is too restrictive"
我想用 TestCafe 执行自动化测试,但是我在用下面的命令测试时遇到了这个错误。
testcafe chrome testc.ts
我使用此命令在我的 Angular 应用程序 中测试 testc.ts 文件,并且我安装了 TestCafe全球在我的项目上。
我有最新的 Angular CLI、node 和 npm。
这是我的测试代码和用于 运行 TestCafe 的命令的屏幕截图:
您似乎没有传递正确的文件路径。试试这个:
testcafe chrome src/testc.ts
我想用 TestCafe 执行自动化测试,但是我在用下面的命令测试时遇到了这个错误。
testcafe chrome testc.ts
我使用此命令在我的 Angular 应用程序 中测试 testc.ts 文件,并且我安装了 TestCafe全球在我的项目上。
我有最新的 Angular CLI、node 和 npm。
这是我的测试代码和用于 运行 TestCafe 的命令的屏幕截图:
您似乎没有传递正确的文件路径。试试这个:
testcafe chrome src/testc.ts