Randomized Property-Based Testing Plugin for Coq
4.9K
For more information on QuickChick, look at the tutorial available under the qc folder of the deep spec summer school: https://github.com/DeepSpec/dsss17
# Add the Coq opam repository (if you haven't already)
opam repo add coq-released https://coq.inria.fr/opam/released
opam update
# Install the coq-quickchick opam package
opam install coq-quickchick
# To get the dependencies, you still need to add the Coq opam repository (if you haven't already)
opam repo add coq-released https://coq.inria.fr/opam/released
opam update
opam install coq-mathcomp-ssreflect coq-ext-lib coq-simple-io
# Then:
make && make install
examples/Tutorial.vexamples/RedBlackexamples/stlcexamples/ifc-basicRunning make tests in the top-level QuickChick folder will check and execute all of these.
If successful, you should see "success" at the end.
QuickCheck cSample gDerive Arbitrary for cDerive Show for cDerive ArbitrarySizedSuchThat for (fun x => p)Derive ArbitrarySizedSuchThat for (fun x => let (x1,x2...) := x in p)QuickCheckWith args cMutateCheck c pMutateCheckWith args c pMutateCheckMany c psMutateCheckManyWith args c psThe public API of QuickChick is summarized in BasicInterface.v.
The main documentation is the DeepSpec summer school tutorial:
Here is some more reading material:
Content type
Image
Digest
Size
1.6 GB
Last updated
about 5 years ago
docker pull ysli/quickchick