Hi, I wrote 2 blog posts about cram tests and It’s a good idea to share them together.
Cram tests: a hidden gem of dune
I’m a strong advocate of unit tests, I can confidently say that it has saved me from introducing regressions countless times. Today I want to share one of the hidden gems of OCaml and their testing story with dune, cram tests.
Snapshot tests for your own ppx
When building preprocessor extensions (ppx) in OCaml, testing is crucial. You want to ensure your ppx works correctly and continues to work as you make changes. After experimenting with different approaches, I’ve found that cram tests fit well for the task.
Let me know what you think, and if there’s a need for more Image may be NSFW.
Clik here to view.
8 posts - 3 participants