Articles related to TDD

Semantic Comparison: Improve Test Assertions

SemanticComparison makes it easier to compare instances of various objects to each other and improve test assertions.

Use Tests As A Feedback Tool To Improve Code

Listen to tests and act on it to improve the code you are writing.

Tip of the Week: AutoFixture - Make Your Unit Tests Robust

AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability

Populating Data for Tests

Different scenarios of test data generation.

Introduce Tests when Fixing Bugs

Refactoring to add tests when fixing bugs helps increase your confidence and grow your test coverage.

Refactoring to Improve Testability: Extracting Dependencies

In the earlier post, Removing Unnecessary Dependencies , we saw how having an unnecessary dependency hinders testability. In this post we will see just the opposite of that - extracting functionality out of a class and creating another class to separate…

Refactoring Test Code: Removing Constructor Dependency

In the earlier post, Removing Unnecessary Dependencies , we saw how having an unnecessary dependency hinders testability. In this post we will see how the test code changed by the refactoring we did for removing the unnecessary dependency and explore ways to…

Refactoring to Improve Testability: Removing Unnecessary Dependencies

Nowadays I am trying to stick to TDD (with the test first approach) and have found it to be of great help. One of the biggest reward doing TDD is that it helps me to stay in the flow and regain speed faster after a distraction. This post explains how to…

Is Code Coverage a Lie?

This post reflects on how code coverage is seen today in the industry and on how it should actually be seen and interpreted so as to produce better and stable code.

TDD and Refactoring

Over the days I have been reading on Test Driven Development(TDD) and it seems really interesting methodology to go with as per development is concerned. Basic of TDD is that the development process relies on 'tests', that are written prior to code. Sounds…