mercredi 10 juin 2020

How to run a TestCafe test with CLI that contains a metadata array

I have a test with the following metadata:

test.meta({ type: 'smoke', testcase: ['tc01', 'tc02'] });

The testcase metadata contains an array of id's that I would like to use them as filter for running the test using any of the values using the command line interface:

testcafe --test-meta testcase=tc01

testcafe --test-meta testcase=tc02

These two command lines should run the same test, however they don't work. Is there another way to approach to this solution?

Aucun commentaire:

Enregistrer un commentaire