My crate is a code generator. More specifically, it generates a parser.
I would like to write function tests that run a generated parser, and compare its result to the expected result.
However, it requires that I run my crate's binary prior to the tests to get the parser's code, compile that code, and then run the tests.
How can I do that with Cargo?
This is very similar to this issue, which unfortunately is not solved.
Aucun commentaire:
Enregistrer un commentaire