Successfully reported this slideshow.
Your SlideShare is downloading. ×

Introduction to unit testing

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Loading in …3
×

Check these out next

1 of 12 Ad

More Related Content

Slideshows for you (19)

Similar to Introduction to unit testing (20)

Advertisement

More from Gil Zilberfeld (20)

Recently uploaded (20)

Advertisement

Introduction to unit testing

  1. 1. Introduction to Unit Testing Gil Zilberfeld, Product Manager 7-Dec-2011
  2. 2. Bugs The curse of developers How do we deal with them?
  3. 3. Types of Testing • QA • Manual tests • Acceptance tests • Developer • Integration tests • Unit tests
  4. 4. Manual Tests • Slow • Do not scale • Encourage forgetfulness • Immoral
  5. 5. Automated Tests • Run all the time • Don’t complain • Don’t forget
  6. 6. Why Unit Test? • Quick feedback • Low TCO • Confidence to • Small setup change your code overhead • Quicker than • It’s not bugs if debugging it’s caught before • Knowing your QA code works • Go faster
  7. 7. xUnit Frameworks • Test Identification • Test Runner • Asserts
  8. 8. .NET xUnit Frameworks • NUnit • MSTest • xUnit • MbUnit
  9. 9. Demo
  10. 10. Test Driven Development
  11. 11. Test Driven Development • Same tools • Think before you act • Great coverage • Improved design • Give it a try
  12. 12. Questions? www.typemock.com www.gilzilberfeld.com typemock.com/blog gilz@typemock.com @typemock @gil_zilberfeld

×