Closed kerryb closed 7 years ago
😮 o that sucks... have you tried #41 to see if it fixes your issue?
Yes, I tried pointing mix to your branch yesterday and it fixes the issue. Thanks :-)
While that branch doesn't have your problem, it will have another issue until its updated. Once he fixes the comment I made I'll merge and release a new version... I will also remove the versions that had this issue as well once I've done that.
Sorry about this, @kerryb. Silly mistake! I've pushed the latest fix.
Tested with Cabbage 0.3.3 and Elixir 1.5.0.
When there are n scenarios in a feature file, it seems that each scenario is run n times. I've created a minimal test case here, but basically what happens is this …
Starting with a single scenario, all seems fine:
Add a second scenario, and the number of tests jumps to four:
With three scenarios, the number jumps to nine, and so on.
I've added code to the step definition that writes to a file, to verify that the tests are actually running multiple times (rather than it being a problem with reporting). I've also verified that the behaviour is the same regardless of whether or not the scenarios share steps.