I’m trying out ScalaCheck 1.12.1 commands API and it is great. But there’s one thing giving me trouble.
For one of my commands, I need the result of the command to implement the nextState() function. It seems in ScalaCheck 1.11 there is a trait called SetCommand that provides exactly this functionality.
Can I somehow achieve this with ScalaCheck 1.12? Simply storing the result to the Command object does not work, because nextState() is sometimes (always?) called before run().