Approval Tests: Write Tests More Quickly by @robertsjason dontcodetired.com
Sometimes assert code in tests gets big and messy and complicated when the output we’re testing is complex.
Approval Tests is a library that can help simplify assert code. The library has other benefits/use cases which I’ll cover in future posts such as using human intelligence to judge if the output is correct; providing a safety net when refactoring legacy code that has no tests; and even testing view rendering.
Report Story
Leave Your Comment