The Tao of Testing v1.1¶
A Field Manual for Software Engineers¶
Java Edition¶
- The Tao Of Testing
- Preface
- Chapter 1 - A Case for Testing
- Chapter 2 - Do we need QA?
- Chapter 3 - Dependency Injection
- Chapter 4 - How to Write Tests
- Rules of the road
- Rule #1 Don’t confuse unit tests with integration tests
- Rule #2 Unit tests should be deterministic
- Rule #3 Inject dependencies where possible
- Rule #4 Don’t test external code
- Rule #5 Unit tests should only test a single unit
- Rule #6 Don’t mix test code and production code
- Rule #7 Integration tests shouldn’t contribute to code coverage
- Rule #8 Write tests before fixing bugs
- Rule #9 Don’t use software tests to verify the environment
- Rule #10 Ensure tests are isolated and idempotent
- Guidebook for writing tests
- Rules of the road
- Chapter 5 - Objections
- Conclusion