Skip to content

Where should OCaml-only unit tests go? #142

Answered by kape1395
ahelwer asked this question in Q&A
Discussion options

You must be logged in to vote

Plain ocaml unit tests are now implemented using ppx. E.g.

let%test_module _ = (module struct

The dune file then has to have inline tests enabled andthe corresponding preprocessor defined, e.g.

tlapm/src/dune

Line 19 in 117b5cb

(inline_tests (deps "../test/resources/module/m_save/TLC.tla"))

More on tests in dune: https://dune.readthedocs.io/en/stable/tests.html

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ahelwer
Comment options

ahelwer Jul 6, 2024
Maintainer Author

@ahelwer
Comment options

ahelwer Jul 6, 2024
Maintainer Author

Answer selected by ahelwer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants