jasmine / jasmine-gem

Jasmine ruby gem
682 stars 274 forks source link

set seed via configuration #291

Closed ToadJamb closed 6 years ago

ToadJamb commented 6 years ago

I can set random to true in my yaml file as follows:

random: true

But I can not find any way to set the seed and in perusing the source code, it appears that seed is not exposed via either the yaml interface or the configuration block in the ruby helper file.

slackersoft commented 6 years ago

Setting a specific seed value should just be a temporary thing while debugging an issue you've discovered via random test ordering. If you find yourself needing a hard-coded seed for longer, then you're not really running random ordering of tests anymore, so we opted to provide access to this via the rake task execution for one-off runs in order to make it harder to accidentally commit a configuration that would fix the order.

Hope this helps. Thanks for using Jasmine!

slackersoft commented 6 years ago

We haven't heard anything else on this issue in a while and I'm not totally convinced on the use case. I'd be happy to talk more about the requested functionality, but I'm going to close this issue for now.

Thanks for using Jasmine!