- Guide: rules_ocaml
-
Topics
- Aggregates
- Aspects
- Bootstrapping
- Caching
- Compilers
- Conditional Builds
- Configuration
- Conventions
- Dependencies
- Deployment
- Diagnostics
- Executables
- File Generation
- Interop
- Labels
- Linking
- Maintenance
- Modules (Bazel)
- Modules (OCaml)
- Namespacing
- Offline development
- OPAM
- Optimization
- Packages
- Preprocessing
- Profiles
- Providers
- PPX Support
- Querying
- Repositories
- Refactoring
- Separate Compilation
- Split Dependencies
- Signatures
- Stamping
- Structures
- Targets
- Testing
- Threading
- Toolchains
- Tools
- Troubleshooting
- bazelrc files
- Visibility
- Workspaces
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