The specified glob pattern does not match any file or the default test directories are empty. - testcafe

亡梦爱人 提交于 2020-02-03 13:03:33

问题


I have started learning testcafe, as our organization wanted to invest time on R & D on getting new e2e tools for angular automation.

I am trying to create an initial small test and facing the following error.

I have installed the testcafe locally using the command

npm install --save-dev testcafe

and have created a spec file with name first-test.spec.ts

import { Selector } from "testcafe";

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

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

when using the following command to run the test

npx testcafe chrome tests/

I am getting the following error

Any help is appreciated.


回答1:


Create test folder and place your spec file in tests, folder and then try to execute the same command

npx testcafe chrome tests/


来源:https://stackoverflow.com/questions/58808416/the-specified-glob-pattern-does-not-match-any-file-or-the-default-test-directori

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!