white-bread
white-bread copied to clipboard
How to run a single file/scenario
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...
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.
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 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