1 / 15

Database unit testing with visual studio 2010

Database unit testing with visual studio 2010. Anthony Brown anthony@found-it.net. Agenda. What is unit testing What is database unit testing When to use it Demo (that will fail….). Rocket science. In programming. In programming. Why unit test?.

dalton-beck
Download Presentation

Database unit testing with visual studio 2010

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Database unit testing with visual studio 2010 Anthony Brown anthony@found-it.net

  2. Agenda • What is unit testing • What is database unit testing • When to use it • Demo (that will fail….)

  3. Rocket science

  4. In programming

  5. In programming

  6. Why unit test? • Allows you to ensure that individual components do what they are supposed to • Catch bugs in development cycle rather than test cycle • Easier to refactor

  7. It is not a substitute

  8. Database unit testing

  9. Database unit testing

  10. Prerequisites • Create database in a consistent state • Source control database objects • Test data

  11. Reasons to not write database unit tests • CRUD operations • Time • Management

  12. Visual studio 2010 database unit tests • Only design in premium & ultimate (run in professional) • Integrated with visual studio test framework • Can be run as part of continuous integration build • Data generator

  13. Demo

  14. Coming up… #SQLBITS

  15. Picture sources • http://www.flickr.com/photos/34388067@N00/150021646/ • http://en.wikipedia.org/wiki/File:Argentina_substitute_bench_%E2%80%93_Portugal_vs._Argentina,_9th_February_2011_%281%29.jpg

More Related