Closed olemartin closed 15 years ago
You're right. I have reproduced it on trunk. What Cuke4duke and Cucumber versions are you using?
BTW, @Before("@mytag") is the way to use it, @Before("mytag") - without the @ should ideally not be run ever. Once this bug is fixed that is.
I followed the example here: http://github.com/aslakhellesoy/cuke4duke/tree/master/examples/java-webdriver/ I am using cuke4duke 0.1.8 and cucumber 0.4.3
Let the ruby side handle tag filtering. We weren't doing any tag filtering at all. Closed by 76f6df114e50cac1c6e573c5a8605a446e4e4b73.
Beware that you need trunk of cucumber to use this. I had to make a little change there too. So build everything yourself or wait for a new release of both.
I thought that an @Before("scenario") should only be ran before scenarios that had the @scenario annotation. However, it seems like the @Before method is ran before all scenarios.