Advance Unit Test, Part V -Unit Test Patterns By Marc Clifton Presentation By Yasir Ibrahim
Preview About the Paper Inspiration Introduction Patterns Pass/fail Patterns Collection Management Patterns Data Driven Patterns Performance Patterns Process Patterns Simulation Patterns Conclusion
About the Paper This paper is taken from it can be seen on gn/autp5.asp gn/autp5.asp
Inspiration Design Patterns Work on Test Patterns is still in its initial phase
Introduction Unit testing evoke a strong reaction If the programmer writes bad code … Double edge sword There is no formal unit test engineering discipline Design to be formalize before any code Solution Formalization of unit testing by unit test patterns
Patterns Pass/fail Patterns Collection Management Patterns Data Driven Patterns Performance Patterns Process Patterns Simulation Patterns Multithreading Patterns
Pass/fail Patterns The Simple-Test Pattern
Pass/fail Patterns The Code-Path Pattern
Pass/fail Patterns The Parameter-Range Pattern
Data Driven Patterns The Simple Test Data Pattern
Data Driven Patterns The Data Transformation Test Pattern
Data Transaction Patterns The Simple Data I/O Pattern
Data Transaction Patterns The Constraints Data Pattern
Data Transaction Patterns The Rollback Pattern
Collection Management Patterns The Collection-Order Pattern
Collection Management Patterns The Enumeration Pattern
Collection Management Patterns The Collection-Constraint Pattern
Collection Management Patterns The Collection-Indexing Pattern
Performance Patterns The Performance Test Pattern
Process Patterns The Process-Sequence Pattern
Process Patterns The Process-State Pattern
Process Patterns The Process-Rule Pattern
Simulation Patterns The Mock-Object Pattern
Simulation Patterns The Service Simulation Pattern
Simulation Patterns The Bit Error Simulation Pattern
Simulation Patterns The Component Simulation Pattern
Conclusion