In last week's newsletter, we explored a tip for keeping tests with complex comparison data tidy. By moving larger expected values into separate resource files, we no longer need to express them in code; they can instead be read from disk during the test. In addition to making tests easier to navigate, the data becomes more readable and less prone to accidental formatting errors – a win-win scenario.
Share this post
How to Make Sure Your Test Resources Are…
Share this post
In last week's newsletter, we explored a tip for keeping tests with complex comparison data tidy. By moving larger expected values into separate resource files, we no longer need to express them in code; they can instead be read from disk during the test. In addition to making tests easier to navigate, the data becomes more readable and less prone to accidental formatting errors – a win-win scenario.