session #2: test driven development
DESCRIPTION
Session #2: Test Driven Development: Improving .NET Application Performance & Scalability Presented by: Jerry NixonTRANSCRIPT
Jerry
TEST DRIVEN DEVELOPMENTAnd other world religions
• What is it & Why TDD? • Software Unit Tests in
VSTS• Database Unit Tests in
VSTS• VSTS for DB Pros GDR
Quality is Job #1
I feel your pain… Users don’t know what they want Users can’t communicate what they
want Users change their minds Requirements aren’t documented Expectations aren’t established Developers haven’t documented
A Design PatternNOT A TEST PATTERN
Testability
Design Debt
Impulse Buying: Impulse Building Late Payments: Late Changes Bankruptcy: Project Rewrite
Can you Afford Change?
Unit Tests in Visual Studio Write tests to ensure code executes
properly Write tests to ensure code fails
properly Write a test as if it is the only test Write a test to test small code blocks
DEMO…
Database Tests in Visual Studio VSTS for Database Professionals GDR Select Connections Validate Results Generate Data Manage Transactions
DEMO…
It #1 It #2 It #3 It #4 It #5 It #6 It #7 It #8 It #9 It #100%
10%
20%
30%
40%
50%
60%
70%
80%
90%
100%
-
10
20
30
40
50
60
70
80
90
100
PassIncon-clusiveFailBugsCoverage
Summary Review TDD is a Design Pattern
Testability & Design Debt Unit Tests help document Unit Test your Database Slow Cultural Change
THANK YOU
http://[email protected]