7 pages tagged with "testing"
These are two different techniques. The key to each of them is about the mindset and context of what you want to achieve.
The complexity here is not about writing tests itself, but the habits that we have to change to create software that is easy to be tested.
Mocking is useful, but “what to mock” usually turns out to be a bit more complicated than expected if you don’t treat this carefully.
These tests are also known as Characterization tests.
If you see something, in the scope of your current task, that can be easily improved, improve it. And if you have any questions about it, ask.
Why you should consider testing as part of your daily development habit and how it’s directly linked to the software quality.