cabbage-ex / cabbage

Story BDD tool for executing elixir in ExUnit
MIT License
138 stars 33 forks source link

Add a way to add ExUnit @moduletag and @tag attributes to generated test cases and tests #29

Closed jbachhardie closed 6 years ago

jbachhardie commented 7 years ago

These features are very useful to define which tests to run in a specific situation through the exclude/include/only arguments to mix test. It would be good to be able to have some way of tagging the tests produced by cabbage, maybe through translating gherkin tags into ExUnit tags.

This might be already implemented but I can't find anything in the documentation.

jbachhardie commented 7 years ago

Okay, figured out you can add @moduletag :tag to the *.exs files, but it would still be better to have the gherkin tags translate into ExUnit tags so we can run/not run specific scenarios.

mgwidmann commented 7 years ago

Hmmm, yeah this is an interesting feature. I have added to automatically tag it as :integration (here https://github.com/cabbage-ex/cabbage/blob/master/lib/cabbage/feature.ex#L187) so thats one way in the mean time you can target them.

mgwidmann commented 6 years ago

Implementing in #34 ... see comment in #35