Sometimes you just have a bunch of example data laying around and
you want to make sure your code works with all of them. Some of them
are probably short and sweet and could live happily as
doctests,
which are amazing btw. But some of them are more awkward to present
in such form, because, for example, of their size or
number. Typically when you have an example of how the program should
behave you write an example-based unit test. Ideally, each of them
would represent an isolated example and they should fail
independently. But, converting your source data files into a unit
test one by one, manually, can be a bit tedious.
Rust build
scripts
to the rescue !