sebaslogen / CleanGUITestArchitecture

Sample project of Android GUI test automation using Espresso, Cucumber and the Page Object Pattern
MIT License
137 stars 31 forks source link

Run specific feature #15

Closed yu-t closed 7 years ago

yu-t commented 7 years ago

Is it possible to run a specific feature? If I specify the feature: @CucumberOptions(features = "features/login.feature") it runs all features no matter.

sebaslogen commented 7 years ago

Yes but not by file, instead you have to tag a feature in Cucumber by adding the feature tag just before the Feature word and run with ./gradlew connectedAndroidTest -Ptags="@my-feature"

For more info look Tags section in the official Cucumber documentation: https://cucumber.io/docs/reference