Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle - how to pass cucumber tag value using -Dcucumber.options #2012

Closed
Krithikmano opened this issue Mar 29, 2020 · 3 comments
Closed

Gradle - how to pass cucumber tag value using -Dcucumber.options #2012

Krithikmano opened this issue Mar 29, 2020 · 3 comments
Labels

Comments

@Krithikmano
Copy link

Please provide the details how to pass cucumber tag running using gradle.

when i try to run the below command via command prompt, it is not accepting "cucumberOptions'

.gradlew runTest -PcucumberOptions="--tags @End2End"

@wakaleo
Copy link
Member

wakaleo commented Mar 29, 2020

This is a Gradle question, so would be best asked in the Gradle forums.

@ssmuthukumaran
Copy link

ssmuthukumaran commented Mar 31, 2020

./gradlew runTest -Dcucumber.options="--tags '@End2End' "
Am using like this.

@Krithikmano
Copy link
Author

@ssmuthukumaran i tried but it is showing the message as Task '.options=--tags' not found in root project. Did you add anything in build.gradle.

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants