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

How to run a single file/scenario #80

Open
mgwidmann opened this issue Dec 7, 2016 · 3 comments
Open

How to run a single file/scenario #80

mgwidmann opened this issue Dec 7, 2016 · 3 comments

Comments

@mgwidmann
Copy link
Contributor

With cucumber you can do cucumber features/my_feature.feature:123 to run a specific feature, but I don't know how to do that with white bread and theres nothing documented. I tried digging through the code a bit but couldn't find it...

@meadsteve
Copy link
Collaborator

Basically missing functionality I've not added. Given a feature could be executed under any number of contexts I'm not sure what the expected behaviour of such a command would be.

@mgwidmann
Copy link
Contributor Author

IMO the ability to execute a feature under different contexts, while a nice feature, sacrifices basic usability. Debugging a test becomes exponentially more difficult when the entire suite has to run. Users coming from cucumber will expect to be able to do mix white_bread.run features/something.feature:123. Additionally, even within the Elixir ecosystem, this works with mix test for the same reason...

@meadsteve
Copy link
Collaborator

@mgwidmann that is a very good point. My preference at the moment would be something like

# Run the feature under all suites it's covered by
mix white_bread.run --feature my_feature

# Run the feature under the api suite
mix white_bread.run --feature my_feature --suite api

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

2 participants