- Introduction
- Core Methodology
- 1. What is EXTREME TDD?
- 2. The RED-GREEN-REFACTOR Cycle
- 3. Test-First Philosophy
- 4. Zero Tolerance Quality
- The RED Phase
- 5. Writing Failing Tests First
- 6. Test Categories
- 6.1. Unit Tests
- 6.2. Integration Tests
- 6.3. Property-Based Tests
- 7. Verification Strategy
- The GREEN Phase
- 8. Minimal Implementation
- 9. Making Tests Pass
- 10. Avoiding Over-Engineering
- 11. The Simplest Thing That Works
- The REFACTOR Phase
- 12. Refactoring with Confidence
- 13. Code Quality Improvements
- 14. Performance Optimization
- 15. Documentation
- Advanced Testing
- 16. Property-Based Testing
- 16.1. Proptest Fundamentals
- 16.2. Strategies and Generators
- 16.3. Testing Invariants
- 17. Mutation Testing
- 17.1. What is Mutation Testing?
- 17.2. Using cargo-mutants
- 17.3. Mutation Score Targets
- 17.4. Killing Mutants
- 18. Fuzzing
- 19. Benchmark Testing
- Quality Gates
- 20. Pre-Commit Hooks
- 21. Continuous Integration
- 22. Code Formatting (rustfmt)
- 23. Linting (clippy)
- 24. Coverage Measurement
- 25. Complexity Analysis
- 26. Technical Debt Gradient (TDG)
- Toyota Way Principles
- 27. Overview
- 28. Kaizen (Continuous Improvement)
- 29. Genchi Genbutsu (Go and See)
- 30. Jidoka (Built-in Quality)
- 31. PDCA Cycle
- 32. Respect for People
- Real-World Examples from Aprender
- 33. Case Study: Linear Regression
- 34. Case Study: Cross-Validation
- 35. Case Study: Random Forest
- 36. Case Study: Model Serialization
- 37. Case Study: KMeans Clustering
- Sprint-Based Development
- 38. Sprint Planning
- 39. Sprint Execution
- 40. Sprint Review
- 41. Sprint Retrospective
- 42. Issue Management
- Anti-Hallucination Enforcement
- 43. Test-Backed Examples
- 44. Example Verification
- 45. CI Validation
- 46. Documentation Testing
- Tools and Setup
- 47. Development Environment
- 48. cargo test
- 49. cargo clippy
- 50. cargo fmt
- 51. cargo mutants
- 52. proptest
- 53. criterion
- 54. pmat (Toyota AI Toolkit)
- Best Practices
- 55. Error Handling
- 56. API Design
- 57. Builder Pattern
- 58. Type Safety
- 59. Performance Considerations
- 60. Documentation Standards
- Metrics and Measurement
- 61. Test Coverage
- 62. Mutation Score
- 63. Cyclomatic Complexity
- 64. Code Churn
- 65. Build Times
- 66. TDG Score Breakdown
- Common Pitfalls
- 67. Skipping Tests
- 68. Insufficient Test Coverage
- 69. Ignoring Warnings
- 70. Over-Mocking
- 71. Flaky Tests
- 72. Technical Debt Accumulation
- Appendix
- 73. Glossary
- 74. References
- 75. Further Reading
- 76. Contributing to This Book