This will be a series of articles revolving around unit testing where I will work through examples and exploring various aspects of the craft. This is the first installment.
I will try to implement a few requirements for a
Library module with books and memberships, extending whatever code we have in a test-driven style (“TDD”) as we go along. I share a few thoughts about the process, show some refactorings and give a few hints for using the IDE.
The level of this article is for junior developers who want to expand their testing horizon.
There’s plenty of information out there which describes what TDD or Test-Driven Development is, the red-green-refactor cycle etc so I won’t delve into too much introductory detail here. See the references at the end for more background-information.
Instead, just get started!
Continue reading “The Librarian: Introduction to Test-Driven Development”