3 ms·
> One tip for anyone trying out jqwik in an enterprise environment is to have > static utility classes for generating Arbitrary<YourBusinessType> and then > s
by johanneslink 5y ago
> One tip for anyone trying out jqwik in an enterprise environment is to have
> static utility classes for generating Arbitrary<YourBusinessType> and then
> setup your data sources on a per test basis rather than setting defaults for
> the types globally
I actually prefer to collect the domain-specific generators in a domain context (see https://jqwik.net/docs/current/user-guide.html#domain-and-domain-context https://jqwik.net/docs/current/user-guide.html#domain-and-do...).
This requires less ceremony to re-use arbitraries in different container classes.