typescript - 指定的 glob 模式与任何文件都不匹配,或者默认测试目录为空。 - 测试咖啡馆

标签 typescript testing ui-automation glob testcafe

我已经开始学习 testcafe,因为我们的组织希望投入时间进行研发,以获得用于角度自动化的新 e2e 工具。

我正在尝试创建一个初始小测试并面临以下错误。

我已经使用命令在本地安装了 testcafe

npm install --save-dev testcafe

并创建了一个名为 first-test.spec.ts

的规范文件
import { Selector } from "testcafe";

fixture`Getting Started`.page`http://devexpress.github.io/testcafe/example`;

test("My First Test", async t => {});

当使用以下命令运行测试时

npx testcafe chrome tests/

我收到以下错误

s 如有任何帮助,我们将不胜感激。

最佳答案

创建测试文件夹并将规范文件放入测试文件夹中,然后尝试执行相同的命令

npx testcafe chrome tests/

关于typescript - 指定的 glob 模式与任何文件都不匹配,或者默认测试目录为空。 - 测试咖啡馆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58808416/

相关文章:

wpf - UI自动化入门

android - 减少 Android 中的 UI 自动化测试时间

javascript - React/TypeScript/SPFx forEach 和复杂对象的映射函数问题

python - 如何为 OSError 编写单元测试?

python - 访问用补丁模拟的对象

ruby-on-rails - Ruby on Rails 2.3.8 : Testing: Instance Variable Nil, 何时在类顶部声明?

java - 使用 Selenium Web 驱动程序进行拖动和排序测试

typescript - 声明仅部分加载的内部模块的函数 - typescript 编译器错误

node.js - 为什么 TypeScript 需要 Node.js?

typescript - Jest 和 typescript : VS Code can't find names