Previously, I’ve written up something on how to implement logic around cucumber’s tags. Well, here’s an improvement… instead of using a formatter, it turns out that you can get to a scenario’s tags as an array of strings, eg:
["@complete", "@slow"]
The place to do is in the Before or After blocks in your env.rb file, eg:
That’s a fair bit easier than using a formatter!