Add a way to add ExUnit @moduletag and @tag attributes to generated test cases and tests
jbachhardie opened this issue · 3 comments
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.
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.
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.