Hello everyone !
I followed this article from Tarides, but I do have a problem with that kind of test.
To sum up the article, you write your
file.ml and the
file.expected.ml, you apply the preprocess
file.ml and check the diff with
file.expected.ml. But I have format issue wit that kind of test,
in a way of OCaml AST my file where I applied the ppx and the expected are equals, but the format is
not (so I get an error)
Did someone have ever encountered the same issue ?
When I was writing a ppx_rewriter I would apply the pp on the
.expected.ml without changing
the AST with a trick. But with ppx_deriver some changes are applied even If I ask my deriver
to not change anything.
It was a bad looking trick but made my tests pass so I kept to this for a while, but my tests
would benefit a lot a real solution.