You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Faker, I prefer to have full randomness from one execution to another (ie: not specifying a seed)
but, when a test fails, I would like to reproduce the problem, with the exact same data, which is not actually possible, because it used an unknown seed.
My proposal would be to always give a random seed to faker, and then display it right after phpunit's execution (thanks to our PHPUnit extension). And being able to set the seed thanks to an environment variable.
I think this would also mean to deprecate zenstruck_foudry.faker.seed configuration.
The text was updated successfully, but these errors were encountered:
When using Faker, I prefer to have full randomness from one execution to another (ie: not specifying a seed)
but, when a test fails, I would like to reproduce the problem, with the exact same data, which is not actually possible, because it used an unknown seed.
My proposal would be to always give a random seed to faker, and then display it right after phpunit's execution (thanks to our PHPUnit extension). And being able to set the seed thanks to an environment variable.
I think this would also mean to deprecate
zenstruck_foudry.faker.seed
configuration.The text was updated successfully, but these errors were encountered: