package qcheck-multicoretests-util
Various utility functions for property-based testing of multicore programs
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.10.tar.gz
md5=ed5980f1cfbfa1e2d2ec5a87954dddf8
sha512=90c451903adb7cbd83aa0f2ad7738d662edc23affb669ed762564cdb2e140ca931afeaabc199fbb6028163fc41c17049961bef7fd2664c677cb1df552d10736d
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