user10251019
user10251019

Reputation:

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

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

s Any help is appreciated.

Upvotes: 2

Views: 3186

Answers (1)

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

npx testcafe chrome tests/

Upvotes: 2

Related Questions