Unit tests are the foundational element in the testing pyramid. In theory, codebases should have more of those than any other kind. Fortunately unit tests area also the fastest to run.
This post originally appeared on Michael’s Coding Spot Fixing bugs is a huge part of a developer’s job, but not many think or read about the actual process of solving a bug. We sort of go at it intuitively, trusting our own self-developed process. Some of us tend to think of bug solving as the
A good unit test examines a specific scenario using the required minimal input and then verifies that the system has reached a specific state. This could prove quite a challenge when the unit of work requires complex input, or if the resulting state is difficult to isolate from the rest of the system. When faced