Running cucumber tests based on tags

The tags can be used when specifying what tests to run through any of the running mechanism.

I am showing here how it is done using the Runner class we had written earlier.

@CucumberOptions (features = "src/test/java/features/", tags = "@Signup-DataDriven")
public class RunFeatures {

So, tags is just another parameter in the cucumber options annotation. We can also pass multiple tags as values separated by commas if we need so.

Also, we will see other ways to do it through the build task in upcoming chapters.

results matching ""

    No results matching ""