vincent-hugot / qtest

Inline (Unit) Tests for OCaml
GNU General Public License v3.0
67 stars 8 forks source link

Unbound module QCheck #34

Closed dannywillems closed 8 years ago

dannywillems commented 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 ?
c-cube commented 8 years ago

try adding -package qcheck in the compilation flags. It contains QCheck and QCheck_runners which are required for the generated code.

dannywillems commented 8 years ago

Thanks, it's working.