Open idreeskhan opened 4 years ago
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
?
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)