Re:Russ Cox: Go Testing by Example
by anitil on Tuesday December 05, 2023 @10:38PM
(#38540236)
I had never heard of template databases before, and I wish I had - this would have saved me an enormous amount of time late last year!
[ Parent
| on HN ]
Re:Russ Cox: Go Testing by Example
by peter_l_downs on Tuesday December 05, 2023 @10:52PM
(#38540307)
You’re not alone — I am sure other people have done this before me but I haven’t ever seen it published, and I rediscovered this technique independently. The logic behind this library has been ported to both scala and typescript without issue, I hope you and others can benefit from the idea even if you don’t use my implementation.
It's really great. It reminds me of using overlay filesystems for tests so that you can maintain a clean read-only template and then run all your tests non-destructively on the overlay.