Stub vs Mock
In automated testing, there are numerous scenarios where we cannot properly test the System Under Test (SUT) due to dependencies on components that are unavailable, return values not useful for the test or when we simply desire more control over them. In these situations, we can use test doubles. A test double…
Test Driven Development
Test-Driven Development (TDD) is a programming technique that inverts the traditional order of software development. It consists of three main stages: Red, Green, and Refactor. In the initial Red stage, a test is created that does not pass because the corresponding functionality has not been implemented yet. This is why…

