qtest
Inline (Unit) Tests for OCaml (Executable)
Install
- All systems
-
curl cmd.cat/qtest.sh
- Debian
-
apt-get install ocaml-qtest - Ubuntu
-
apt-get install ocaml-qtest - Kali Linux
-
apt-get install ocaml-qtest - Fedora
-
dnf install ocaml-qtest - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install ocaml-qtest
ocaml-qtest
Inline (Unit) Tests for OCaml (Executable)
qtest extracts inline unit tests written using a special syntax in comments. Those tests are then run using the oUnit framework and the qcheck library. The possibilities range from trivial tests -- extremely simple to use -- to sophisticated random generation of test cases.