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

Provide configurable defaults for scalacheck generated fields #328

Open
idreeskhan opened this issue Oct 5, 2020 · 1 comment
Open

Provide configurable defaults for scalacheck generated fields #328

idreeskhan opened this issue Oct 5, 2020 · 1 comment

Comments

@idreeskhan
Copy link
Contributor

The most common issue is the strings that are generated are completely random and usually weird/non-ascii characters. While this is useful for testing it is not always the desired behaviour. Users can override this by implementing their own implicit generators but we should also provide a quick and easy way to get some common defaults (for example an ASCII string or a string with a max size)

@patrickwmcgee
Copy link

I think also providing some arbitrary instances uuid values, date values might also be valuable for folks who are interested in making sure their generated test data looks like what the real data should as well. Perhaps they could be packaged into a trait to allow for something like MyJobTest extends SafeArbitraryInstances?

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

No branches or pull requests

2 participants