Kent Beck is the founder and director of Three Rivers Institute (TRI). He has pioneered patterns for software development, the XUnit family of test frameworks, the HotDraw drawing editor framework, CRC cards, refactoring, and most recently eXtreme Programming (XP). He is the author of Extreme Programming Explained, Planning Extreme Programming, and The Smalltalk Best Practice Patterns. He lives on 20 acres in rural southern Oregon with his wife, five children, four dogs, two sheep, and a variable number of domestic fowl.
Automating Tests | p. 1 |
Why Test? | p. 3 |
Time | p. 5 |
"Perfect" is a Verb | p. 8 |
JUnit's Goals | p. 8 |
Fixtures | p. 12 |
More setUp() than tearDown() | p. 14 |
Variations | p. 15 |
Suite-Level Setup | p. 15 |
Testing Exceptions | p. 16 |
JUnit's Implementation | p. 18 |
JUnit API | p. 20 |
Overview | p. 20 |
Assert | p. 21 |
Test | p. 24 |
TestCase | p. 25 |
TestSuite | p. 26 |
TestResult | p. 27 |
Package Structure | p. 29 |
Test-First Programming | p. 29 |
Factorial Example | p. 31 |
Test-First Programming in Practice | p. 33 |
Stubs | p. 34 |
Stubs and Good Design | p. 35 |
Self-Shunting | p. 36 |
Other Uses for Tests | p. 37 |
Debugging Tests | p. 37 |
Learning an API with Tests | p. 38 |
Documenting Assumptions with Tests | p. 39 |
Cross-Team Tests | p. 40 |
Story of JUnit | p. 42 |
Extending JUnit | p. 45 |
Extensions | p. 46 |
JUnit and Ant | p. 47 |
More About Running Tests | p. 49 |
Formatting Feedback | p. 49 |
Conclusion | p. 52 |
Running JUnit Standalone | p. 52 |
Text | p. 52 |
AWT | p. 53 |
Swing | p. 55 |
JUnit and IDEs | p. 56 |
Eclipse | p. 56 |
JBuilder | p. 62 |
IntelliJ IDEA | p. 66 |
Test Infection | p. 72 |
Bibliography | p. 76 |
Table of Contents provided by Rittenhouse. All Rights Reserved. |
The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.