faker
faker copied to clipboard
Feature Request: ExUnit seeds for Faker
Would it be possible, or even desired, to add a feature which would let you take the seed number from ExUnit, and use it to seed the random data supplied by Faker during tests? It would make it really helpful to track down the results of flaky tests.
I think you can achieve this with something similar to what we do in faker tests itself.
https://github.com/elixirs/faker/blob/53668128544c7891763531e35c8b1088c15ae8d5/test/test_helper.exs#L2
I'm currently not using faker, if you want to give it a shot and hit roadblocks don't hesitate to ask here, I'll try to help.
If you manage to solve it with this feel free to post it here or send PR so other people can use it too.