session #2: test driven development

13
Jerry

Upload: steve-lange

Post on 01-Nov-2014

1.169 views

Category:

Technology


0 download

Tags:

DESCRIPTION

Session #2: Test Driven Development: Improving .NET Application Performance & Scalability Presented by: Jerry Nixon

TRANSCRIPT

Page 1: Session #2: Test Driven Development

Jerry

Page 2: Session #2: Test Driven Development

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

Quality is Job #1

Page 4: Session #2: Test Driven Development

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

A Design PatternNOT A TEST PATTERN

Testability

Page 6: Session #2: Test Driven Development
Page 7: Session #2: Test Driven Development

Design Debt

Impulse Buying: Impulse Building Late Payments: Late Changes Bankruptcy: Project Rewrite

Can you Afford Change?

Page 8: Session #2: Test Driven Development
Page 9: Session #2: Test Driven Development

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

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

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

Summary Review TDD is a Design Pattern

Testability & Design Debt Unit Tests help document Unit Test your Database Slow Cultural Change

Page 13: Session #2: Test Driven Development

THANK YOU

http://[email protected]