Database unit testing with visual studio 2010 Anthony Brown
Agenda What is unit testing What is database unit testing When to use it Demo (that will fail….)
Rocket science
In programming
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
It is not a substitute
Database unit testing
Prerequisites Create database in a consistent state Source control database objects Test data
Reasons to not write database unit tests CRUD operations Time Management
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
Demo
Coming up… # SQLBITS SpeakerTitleRoom Stephan StoltzeWriteback-Here Comes the SunAintree James BootherPOSH ClusteringLancaster Kasper de JongeBuilding Great Models for CrescentPearce Andy LeonardDesigning an SSIS FrameworkBoardroom Milos RadivojevicTSQL Performance RecommendationsEmpire Christina E. LeoWorking with Server Side TracesDerby
Picture sources a,_9th_February_2011_%281%29.jpghttp://en.wikipedia.org/wiki/File:Argentina_substitute_bench_%E2%80%93_Portugal_vs._Argentin a,_9th_February_2011_%281%29.jpg