aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/unit-tests/src/utest.mli
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/unit-tests/src/utest.mli')
-rw-r--r--test-suite/unit-tests/src/utest.mli12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/unit-tests/src/utest.mli b/test-suite/unit-tests/src/utest.mli
new file mode 100644
index 000000000..70928228b
--- /dev/null
+++ b/test-suite/unit-tests/src/utest.mli
@@ -0,0 +1,12 @@
+(** give a name to a unit test *)
+val mk_test : string -> OUnit.test -> OUnit.test
+
+(** simple ways to build a test *)
+val mk_eq_test : string -> string -> 'a -> 'a -> OUnit.test
+val mk_bool_test : string -> string -> bool -> OUnit.test
+
+(** run unit tests *)
+(* the string argument should be the name of the .ml file
+ containing the tests; use __FILE__ for that purpose.
+ *)
+val run_tests : string -> OUnit.test list -> unit