Let say I have now several features like the two examples below:
@coreFeature: My FeatureAs Autokin testerI want to verify that all API are working as they shouldScenario: My First ScenarioGiven that a secure endpoint is up at reqres.inWhen I GET /api/users/2
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.
@fix-321Feature: My FeatureAs Autokin testerI want to verify that all API are working as they shouldScenario: Verify if API does not accept character idGiven that a secure endpoint is up at reqres.inWhen I GET /api/users/abc
So now we want to run the test but only focus on running
@fix-321. WE can do this by using the following command.
./node_modules/.bin/autokin -e -t @fix-321
If we want to run only
@core then we can use the following:
./node_modules/.bin/autokin -e -t @core
If we are not passing the tags
--tags parameter, it will run everything.
What if we want to run everything but not the @core, then we can also use the following command:
./node_modules/.bin/autokin -e -t "not @core"