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

Document approaches for writing factories #14

Open
jadedarko opened this issue Nov 9, 2023 · 1 comment
Open

Document approaches for writing factories #14

jadedarko opened this issue Nov 9, 2023 · 1 comment

Comments

@jadedarko
Copy link
Contributor

With factories, data can be defined on attributes in a static way, or the fuzzy functions can be utilised.

It has been asserted by some, that the fuzzy functions should be generally avoided, and static values should be used to avoid potential flakiness - if the values differ from test run to test run, there is the potential that one (potentially rare) test run will generate an invalid value, but it may be hard to reproduce and diagnose

We should document approaches for this - e.g.: when (if ever) to use the random generation utils

@a-musing-moose
Copy link
Contributor

I am one of those some :-). This is indeed a good question. There is also a meta-question of how much guidance should be part of the repo/template project documentation and how much should be in a shared location like Notion.

Is this a convention worthy topic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants