Along with practices like object-oriented programming and version control, automated testing is one of the greatest innovations ever to be introduced to programming.
Professional Rails Testing shows how to use automated testing-especially test-driven development-to see programming from a whole new angle. You'll see not just what to do but exactly why to do it-and when to question conventional testing wisdom. When you fully embrace automated testing and make it a habit, you'll wonder how you ever coded any other way.
Topics covered include:
- Tests as specifications
- Test-driven development
- How to write meaningful tests
- How to write understandable tests
- Mocks and stubs
- Flaky tests and how to fix them
- Factory Bot, RSpec and Capybara