#Passing Arguments to jQwik Arbitraries

4 messages · Page 1 of 1 (latest)

gaunt plaza
#

I was wondering if anyone out there knows if it's possible to pass arguments to jQwik Arbitraries. I have some objects that I need to initialize in my tests bodies (in a try-with-resources) and they are also used in the construction of some objects that I want to create arbitraries for.
Was wondering if there's any way to pass them into the Arbitrary generators. Or if the best option would be to generate the components of the objects that aren't static and construct the generated objects in my test function from the generated components and the static bit.

neon swallowBOT
#

This post has been reserved for your question.

Hey @gaunt plaza! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

sturdy jackal