After gaving my talk about Property Based Testing, I was contacted by one of the participants with the following question:
How to change the number of test runs?
In case you have no idea what I’m talking about; by default the property based testing library(FSCheck in my case) will generate a number of inputs and run the tests for all these inputs. By default 100 inputs are generated and tested:
You can change the number of test runs either by setting the MaxTest
property on the [Property]
attribute:
Or by passing a configuration object when calling Prop.ForAll