Beruflich Dokumente
Kultur Dokumente
Agenda
Challenges we deal today Unit Testing Database can be Unit Tested! Be Agile - Test Driven Development Q&A Summary
Unit Test
Parts of the code behaves as intended.
DEMO
Unit Test using Visual Studio.
Code Coverage
Which code has been touched by a test.
DEMO
Code Coverage Using Team System.
Application Code
Unit Tests
Stored Procedures
DEMO
Database Unit Testing.
Tools
Tools For Agility, Kent Beck
DEMO
Changing code in TDD.
DEMO
Adding code in TDD.
Quality Indicators
91 80
76
71
60
51
56
40 32.5
20
19 18 12
9 8
Iteration 1
Iteration 2
Iteration 3
Iteration 4
Iteration 5
$59,000,000,000
Development and testing/bug fixing take about the same amount of time Development takes more time than testing, and testing time is reduced Overall lifecycle is shortened
Unit testing is a learned skill that can only be honed with experience.
Q&A
Summary
Development becomes more challenging. Unit Test create a safety net. Database can be Unit Tested! Documentation is the best side effect ever! Development is Faster using TDD. VSTS is a great tool for UT and TDD.
THANK YOU
Additional Resources
Visual Studio Team System 2008 - Trial Software
http://msdn.microsoft.com/en-gb/vsts2008/products/cc268310.aspx
Related Sessions
ALM301: Web Sites Testing with Visual Studio Team System Shai Raiten 10:50-12:00 Arava Hall
ALM303: Professional Developer Tools in Visual Studio Maor David 10:50-12:00 Tavor Hall
DEV314: Design Patterns Learn From the Experience Avi Roth 14:30-15:40 Galil Hall
2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.