2025-10-03
| 1 minute
For something as crucial as a financial tool, I want to be sure that plim
is always extracting an accurate model of my finances from the data files I’ve download from my financial service providers. So, to ensure that new code never breaks that “ground truth,” I’ve added a simple golden file regression testing system, which gets automatically run every time I check in code changes with git.
By carefully curating a set of testing data that illustrates tricky situations and then hand-verifying that the model built from them is correct, I can ensure that plim
will faithfully handle the weird cases, even when they occur in live data.
It won’t guarantee that I’ve created a good budget, but it should guarantee that the facts I’m building it from always reflect reality.