Closed dannywillems closed 8 years ago
Hello
I installed qtest with opam
opam install qtest
Next, I created a foo.ml file containing
(*$T f f 2 3 = 5 *) let f a b = a + b
The test file generation is ok with
qtest -o foo_test.ml extract foo.ml
But when I try to build
ocamlbuild -cflags -warn-error,+26 -use-ocamlfind -package oUnit foo_test.native
I have Error: Unbound module QCheck
What did I do wrong ?
try adding -package qcheck in the compilation flags. It contains QCheck and QCheck_runners which are required for the generated code.
-package qcheck
QCheck
QCheck_runners
Thanks, it's working.
Hello
I installed qtest with opam
Next, I created a foo.ml file containing
The test file generation is ok with
But when I try to build
I have Error: Unbound module QCheck