session #2: test driven development
DESCRIPTION
Session #2: Test Driven Development: Improving .NET Application Performance & Scalability Presented by: Jerry NixonTRANSCRIPT
![Page 1: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/1.jpg)
Jerry
![Page 2: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/2.jpg)
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
![Page 3: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/3.jpg)
Quality is Job #1
![Page 4: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/4.jpg)
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
![Page 5: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/5.jpg)
A Design PatternNOT A TEST PATTERN
Testability
![Page 6: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/6.jpg)
![Page 7: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/7.jpg)
Design Debt
Impulse Buying: Impulse Building Late Payments: Late Changes Bankruptcy: Project Rewrite
Can you Afford Change?
![Page 8: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/8.jpg)
![Page 9: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/9.jpg)
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…
![Page 10: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/10.jpg)
Database Tests in Visual Studio VSTS for Database Professionals GDR Select Connections Validate Results Generate Data Manage Transactions
DEMO…
![Page 11: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/11.jpg)
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
![Page 12: Session #2: Test Driven Development](https://reader035.vdocuments.mx/reader035/viewer/2022070301/54557112b1af9fcf338b489d/html5/thumbnails/12.jpg)
Summary Review TDD is a Design Pattern
Testability & Design Debt Unit Tests help document Unit Test your Database Slow Cultural Change