Presentation is loading. Please wait.

Presentation is loading. Please wait.

Test Driven Development using Visual Studio Team System Ariel Gur-Arieh VP R&D – MCD Software Solutions

Similar presentations


Presentation on theme: "Test Driven Development using Visual Studio Team System Ariel Gur-Arieh VP R&D – MCD Software Solutions"— Presentation transcript:

1 Test Driven Development using Visual Studio Team System Ariel Gur-Arieh VP R&D – MCD Software Solutions http://blogs.microsoft.co.il/blogs/arielga

2 Agenda Challenges we deal today Unit Testing Database can be Unit Tested! Be Agile - Test Driven Development Q&A Summary

3 Challenges we deal today Does our code do what we intended? Documentation – is it updated? Debug – again? Change Request – no sleep, again!?! Customers speak Gibberish, translation please.

4 Unit Test Parts of the code behaves as intended.

5 DEMO Unit Test using Visual Studio.

6 Code Coverage Which code has been touched by a test.

7 DEMO Code Coverage Using Team System.

8 Database can be Unit Tested! User Interface Application Code Unit Tests Data Access Layer Stored Procedures

9 DEMO Database Unit Testing.

10 Get Agile – Test Driven Development Tools For Agility, Kent Beck Practices Tools

11 Test Driven Development The motto "Red, Green, Refactor."

12 DEMO Changing code in TDD.

13 TDD in Action: Active Bug Bug: Expired Credit Cards are being Credited

14 DEMO Adding code in TDD.

15 TDD in Action: New Requirement Requirement: Add Bonuses to special customers.

16 Quality Indicators Iteration 1Iteration 3Iteration 4Iteration 5Iteration 2 91 20 51 76 60 56 19 18 40 71 80 32.5 12 8 9

17 Benefits of Test Driven Development

18 $59,000,000,000

19 TDD - Application Lifecycle 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

20 Unit testing is a learned skill that can only be honed with experience.

21 Starting Test Driven Development Creating a cultural change is hard… ….. and it can be done.

22 Q & A

23 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.

24 THANK YOU

25 Additional Resources Visual Studio Team System 2008 - Trial Software http://msdn.microsoft.com/en-gb/vsts2008/products/cc268310.aspx http://msdn.microsoft.com/en-gb/vsts2008/products/cc268310.aspx MSDN - Working with Unit Tests http://msdn.microsoft.com/en-us/library/ms182515.aspx http://msdn.microsoft.com/en-us/library/ms182515.aspx Guidelines for Test-Driven Development http://msdn.microsoft.com/en-us/library/aa730844.aspx http://msdn.microsoft.com/en-us/library/aa730844.aspx

26 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

27

28 © 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.


Download ppt "Test Driven Development using Visual Studio Team System Ariel Gur-Arieh VP R&D – MCD Software Solutions"

Similar presentations


Ads by Google