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

Allow to configure which Feature/Scenario run from the command line #11

Open
lburgazzoli opened this issue Oct 4, 2021 · 4 comments
Open

Comments

@lburgazzoli
Copy link
Contributor

As today, the test engine runs every feature it finds in the classpath but it would be nice to have an option to selectively run a feature file, like:

mvn test -Dquarkus.cucumber.features=MyFeature
@christophd
Copy link
Contributor

I think this should work right now: -Dcucumber.features=MyFeature

Could you please give it a try and let me know if this works

@lburgazzoli
Copy link
Contributor Author

Tried it again but does not seem to be working

@dmi3coder
Copy link

Tags are working fine for me, if you put a tag (e.g @only above the feature):

mvn verify -Dcucumber.filter.tags="@only"

Although it doesn't help with running specific feature by feature name

@dmi3coder
Copy link

@lburgazzoli
I was able to run single scenario with the next command

mvn verify -Dcucumber.filter.name="my scenario"

Assuming you have:

Scenario: my scenario
    When ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants