Basically, if you add this to your env.rb file, it will shuffle your feature file.
I've tested this, and it does indeed work. No tweaks, no file name or directory changes needed. The only thing is that it's either on or off, so my next step is to see what it will take to set this as a flag to rake. It would be sweet to just say something like "
rake cucumber:tag:machine:random
To have randomized runs, and not include the random tag to have them run in standard, alphabetical order.
I'm not 100% of the way there, but this is pretty good so far :).
No comments:
Post a Comment