Download
unit testing patterns and anti patterns n.
Skip this Video
Loading SlideShow in 5 Seconds..
Unit Testing Patterns and Anti-Patterns PowerPoint Presentation
Download Presentation
Unit Testing Patterns and Anti-Patterns

Unit Testing Patterns and Anti-Patterns

207 Views Download Presentation
Download Presentation

Unit Testing Patterns and Anti-Patterns

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Unit Testing Patterns and Anti-Patterns Steve Bohlen E-Mail: sbohlen@gmail.com Blog: http://blog.unhandled-exceptions.com Twitter: @sbohlen

  2. We want to thank the sponsors of KCDC. Without them, none of this would be possible. Thanks to Our Sponsors Gold Sponsors Silver Sponsors Product Sponsors

  3. Do I suck? Let me (and the world) know! http://spkr8.com/t/7866

  4. Steve Bohlen Nearly 20 years developing software LISP, Delphi, C/C++, VB, VB.NET, C# Senior Engineer Springsource/VMware Co-Founder, NYC Alt.NetUser Group http://nyalt.net • Co-Organizer, NYC DDD User Group • http://dddnyc.org Contributor: various OSS projects Nhibernatehttp://www.nhforge.org • NDbUnithttp://www.googlecode.com/ndbunit • Spring.NET http://www.springframework.net blog: http://blog.unhandled-exceptions.com e-mail: sbohlen@gmail.com twitter: @sbohlen

  5. Test Studio Express TelerikOpenAccess ORM RAD Controls for ASP.NET AJAX RAD Controls for Windows Phone ASPX to Razor Converter RAD Controls for WPF TelerikTeamPulse Sitefinity CMS C#/VB.NET Converter TelerikJustDecopile Telerik Reporting TelerikJustMock RAD Controls for Winforms RAD Controls for Silverlight TelerikJustCode Telerik Extensions for ASP.NET MVC Telerik Test Studio

  6. Anti- Definition: Pattern Anti- In software engineering, a design pattern is a general reusable solution to a commonly occurring problem in software design. that leads to commonly occurring problems in software design.

  7. Challenge: Running Tests

  8. Interacting with your Tests Rerun Run Selected Tests Rerun Debug Selected Tests

  9. Challenge: Speedy Tests

  10. Challenge: Naming Tests

  11. Challenge: Descriptive Assertions

  12. Challenge: Repetition

  13. Challenge: False Positives

  14. Challenge: Faked Out!

  15. Challenge: Maintenance

  16. Challenge: Testing Exceptions

  17. Challenge: Test Coverage

  18. Challenge: Organizing Tests

  19. Challenge: Data Dependency

  20. Challenge: Multiple Assertions

  21. And now for something completely different… …code!

  22. fini Steve Bohlen E-Mail: sbohlen@gmail.com Blog: http://blog.unhandled-exceptions.com Twitter: @sbohlen