Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 521

[ANN] "Cram tests: a hidden gem of dune" and "Snapshot tests for your own ppx"

$
0
0

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 :smiley:

8 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles