Generating test cases using build.rs is time-consuming and will cause a lot of re-builds. Luckily, nextest recently added libtest-mimic support. We can simply create a binary using libtest-mimic which discovers all the tests, and run it with cargo nextest.
Generating test cases using
build.rs
is time-consuming and will cause a lot of re-builds. Luckily, nextest recently added libtest-mimic support. We can simply create a binary using libtest-mimic which discovers all the tests, and run it with cargo nextest.https://nexte.st/book/custom-test-harnesses.html#libtest-mimic-recommended