Tags
Labeling test for targeted runs
Targetting Test with Tags
Let say I have now several features like the two examples below: my-first-feature.feature
The above feature file we tag that as @core
feature, while below we tag that as @fix-321
to denote that this is for the fix for 321 issue.
my-second-feature.feature
So now we want to run the test but only focus on running @fix-321
. WE can do this by using the following command.
If we want to run only @core
then we can use the following:
If we are not passing the tags -t
or --tags
parameter, it will run everything.
Tags for exceptions
What if we want to run everything but not the @core, then we can also use the following command:
Last updated