Testing on the OCaml track

Learn how to test your OCaml exercises on Exercism


Because OCaml is a compiled language you need to compile your submission and the test code before you can run the tests. We use dune to build. Each folder has a dune file specifying how to build and also a Makefile which delegates to dune.

To compile and run the tests, simply type from the exercise folder:

make

Creating Your First OCaml Module

To create a module that can be used with the test in the bob exercise put the following in a file named bob.ml:

open Base 

let response_for input = failwith "TODO"