mardi 16 juin 2020

Running tests by filtering with grep not working

I have the following tests:

test('111', async t => {
    await t.expect(true).ok()
});

test('222', async t => {
    await t.expect(true).ok()
});

I would like to run both tests using -T , --test-grep pattern, however when executing in the powershell I'm getting an error:

npx testcafe -T "111|222"

'222' is not recognized as an internal or external command, operable program or batch file.

Why is this happening? I'm sure I'm using the correct regex pattern. Also I don't want to make use of test metadata filtering.

Aucun commentaire:

Enregistrer un commentaire