Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Creating Data Based On Seeds #24

Open
mcmah309 opened this issue Sep 15, 2023 · 0 comments
Open

Support Creating Data Based On Seeds #24

mcmah309 opened this issue Sep 15, 2023 · 0 comments
Assignees

Comments

@mcmah309
Copy link

Repeatable fake data is very important for testing use cases:

  • Integration tests where access to the original object is difficult or impossible. Example: one system creates data to be consumed by another system. The expected output is based on a transformation of the original data, and without hard coding, testing would essentially need to re-implement the system just for the test, defeating the purpose.
  • Allowing debugging exact failure cases.
  • Better understand of regressions.
  • Even if random seeds are used, knowing the seeds to identify and fix flakey tests.

implementation:
At minimum, creating a local FakeIt as such, should be possible:

FakeIt::new(2314907).word();

Ideally you would also be able to set a global seed for ergonomics, so you do not have to create a FakeIt instance.

@PumpkinSeed PumpkinSeed self-assigned this Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants