Karen D'souza
Karen D'souza

Reputation: 33

How to run only one fixture by specifying multiple metadata?

I have 2 fixtures with a bunch of tests:

 fixture.meta({ app: '1', suite: 'smoke', env: '1' })('A')

 fixture.meta({ app: '1', suite: 'smoke', env: '2' })('B')

I would like to only run fixture 'A'.

I am using the following command on the command line: .... --includeFixtures app=1 ,env=1. I am still seeing both fixtures A and B being run.

What am I missing?

Upvotes: 0

Views: 270

Answers (1)

Martin H.
Martin H.

Reputation: 574

It seems like you are just using the wrong CLI command. In order to run TestCafe fixtures by specifying additional meta data, you need to use the --fixture-meta command, which you could use like follows:

testcafe chrome my-tests --fixture-meta app=1,env=1

Upvotes: 2

Related Questions