Unit testing OCaml modules with pa_ounit -
i have simple module test few inline pa_ounit tests, i've setup directory in oasis style , got build.
for reference i've been using: https://github.com/janestreet/textutils
how 1 execute unit-tests above repo? i'm assuming there's executable .ml file write goes in this, how built , extend tests described @ module level in way?
i've read docs pa_ounit , make me more confused ha.
as pa_ounit readme says, run executable contains tests inline-test-runner argument.
even without pa_ounit (when using plain ounit), file tests compiled , executed. should try ounit before start using syntax extension can feel of system.
oasis, popular build automation tool, allows build tests , run them "make test" easily. see https://ocaml.org/learn/tutorials/setting_up_with_oasis.html#tests
Comments
Post a Comment