For a project I’m working on right now, I’m curious how people would suggest going about testing ocaml-migrate-parsetree. At first blush, it seems a little complicated:
- one doesn’t want to write down a gazillion AST expressions – that’d be incredibly tedious.
- is fuzz-testing sufficient? These are big, complicated types.
- using the ocaml parser seems difficult: it changes from version-to-version, and it seems unlikely that you can copy the ocaml 4.02 parser to ocaml 4.11 and expect it to even compile.
Anyway, just curious.
ETA: Looking at the code, I don’t see copious tests, which is why I wondered.