white-bread icon indicating copy to clipboard operation
white-bread copied to clipboard

How to run a single file/scenario

Open mgwidmann opened this issue 7 years ago • 3 comments

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...

mgwidmann avatar Dec 07 '16 19:12 mgwidmann

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.

meadsteve avatar Dec 08 '16 13:12 meadsteve

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...

mgwidmann avatar Dec 08 '16 14:12 mgwidmann

@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

meadsteve avatar Dec 18 '16 15:12 meadsteve