javascript - TestCafe错误: "No tests to run. Either the test files contain no tests or the filter function is too restrictive"

标签 javascript angular typescript automated-tests testcafe

我想使用TestCafe执行自动化测试,但在使用以下命令进行测试时遇到此错误。

testcafe chrome testc.ts

我使用此命令来测试 Angular 应用程序中的 testc.ts 文件,并在我的项目中全局安装了 TestCafe。

我有最新的Angular CLI、node 和 npm。

这是我的测试代码和用于运行 TestCafe 的命令的屏幕截图:

Screenshot of my code

最佳答案

看起来您没有传递正确的文件路径。试试这个:

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/

相关文章:

javascript - HTML/CSS 照片库不显示图片

javascript - 在隐藏元素中显示元素

angular - 我们如何使用 Angular 处理 URL 中的特殊字符

Angular -将字节数组显示为图像

javascript - 如何使用 JS 禁用多个输入?

javascript - 将 Canvas 内脚本生成的图像替换为常用的 jpeg

javascript - 什么是 TypeScript 中的 F 界多态性

ubuntu - 如何在 Netbeans 8 中格式化 TypeScript 代码?

angular - 尝试绑定(bind)到 dx-date-box 时,类型 'string | number | Date' 无法分配给类型 'Date'

javascript - 换行和5个新空格的正则表达式