A method of improving code quality and minimizing time required to add new features to software by ensuring that each facet of the program works as expected.
- Complete thoughtbot's Test-Driven Rails Workshop
- Read Beginning Outside-In Rails Development with Cucumber and RSpec
- Read Martin Fowlers Mocks Aren't Stubs
- Read xUnit Test Patterns
- Understand the basics of mocking and stubbing in unit tests.
- Name each phase of the Four Phase Test.
- Identify a Mystery Guest.
- Write a test before implementation.
- Make the test error or fail.
- Make the test pass by writing the simplest implementation possible.
- Refactor.