package qcheck-multicoretests-util
Various utility functions for property-based testing of multicore programs
Install
Dune Dependency
Authors
Maintainers
Sources
0.8.tar.gz
md5=8e7634814a61bf765ac6989f7fdc49cb
sha512=dfa53117ecbf2e466f6ecddfa91d8eb63a3156fe9e1c5a68fd0da26a4c810312581d9ace4c00c4ab1947614f7fb1d6b686003a09da418d2940ac79a7b744a8eb
doc/index.html
qcheck-multicoretests-util
The package offers a Util
module with a number of reusable functions handy for multicore testing.
An example
For example, the function Util.repeat
is handy to repeatedly test a non-deterministic property that may behave differently on repeated reruns.
Consider a regular QCheck
test such as the following:
open QCheck
let test =
Test.make ~name:"example test" small_int some_int_property
The following adaption of test
will now fail if just one of the 50 repetitions fail to satisfy the tested property:
let test =
Test.make ~name:"example test with repetition"
small_int (Util.repeat 50 some_int_property)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page