I'm trying to find the best way of How to run TestCafe tool scripts using particular grouping - smoke, regression, etc.? What would be the proper syntax of cmd? WE have script with fixture and think to use it for grouping.All I need to find out the answer is it is possible and what would be the correct cmd for that. THanks for the reply, Alex
Asked
Active
Viewed 181 times
2 Answers
2
In order to run a subset of Fixtures/Tests (i.e. 'Smoke'), you can now use the .meta({key: 'value', key2: 'value2'})
option for both the Fixture and the Test objects.
Example:
test
.meta({smoke: true, feature: true})
or
fixture
.meta('crud': 'read'})
Then, when running from the command line, pass --test-meta key=value
or --fixture-meta key=value
options now, as mentioned here
And again in the Enhancements documentation

Rob C
- 662
- 5
- 15
-
This is my first answer to a SO question, so I'm happy to receive feedback on how to improve it – Rob C Apr 10 '19 at 18:51
-
Thank you for your answer, it's a very good solution for TestCafe versions starting from 0.23.1. – Andrey Belym Apr 11 '19 at 13:08
1
Please use "fixture" to group test. To filter run fixtures, use the following options:
-F or --fixture-grep patern
-t or --test name
-f or --fixture name

Marion
- 1,074
- 5
- 10