Six Rules of Unit Testing

Charles’ Six Rules of Unit Testing 1. Write the test first 2. Never write a test that succeeds the first time 3. Start with the null case, or something that doesn’t work 4. Don’t be afraid of doing something trivial to make the test work 5. Loose coupling and testability go hand in hand 6. Use mock objects

Six Rules of Unit Testing

Blogged with the Flock Browser

About the Author

Yogi

24 years of experience in various layers of software. Primarily experienced in system side software design and development on server management software. Interested in linux development in x86 and arm architecture.