I am using cucumber with java, maven, and testng, on aws device-farm and there is a suite of scenarios I would like to run. I have several different feature files, each contains several tests with the same tag name. I mean that each one of my feature file contains a tag @sanity. When I run it, I see that the tests run according to alphabetical order of the feature files name. Is there a way to control the order of the execution?
For example I have favorites.feature, treks.feature, and chats.feature. Each of these feature files have a test with @sanity tag. I want to be able to run the @sanity test in treks.feature before the @sanity test in chats.feature. Is it even possible?
Thanks
order
option to run in random, reverse or random with a seed. Check the usage doc. Though only available from command line. – Grasshopper