I'm aware of -Dtest.single parameter however my requirement is to filter with the tag value I set with '@WithTag' annotation in my test.
Example:
@Test
@WithTag(name = "default_login")
public void validUserShouldBeAbleToLoginWithDefaultUser() {
loginSteps.user_login_with_default_user();
}
@Test
public void validUserShouldBeAbleToLoginWithAdmin() {
loginSteps.user_login_to_the_application("user", "user");
}
Could anyone help me to figure out how to run the first test by passing the tag value 'default_login' with Gradle please.