Testing Last updated May 5, 2022
TODO: ocaml_test, ppx_test guide.
Resources
Bazel Documentation:
-
Test encyclopedia - An Exhaustive Specification of the Test Execution Environment
Blog articles etc.
-
How to make your automated tests run faster with Bazel (Nov. 2016). A little long in the tooth but still useful.
testing frameworks
ounit2
alcotest
ppx_inline_test
Demos: ppx_inline_test
By default Bazel captures stdout and stderr; to redirect it back to stdout, use --test_output=all
To pass args on the command line use --test_arg=<arg>
, e.g.:
`bazel test testing/ppx_inline_test/basic:test --test_output=all --test_arg=-help