Download presentation
Presentation is loading. Please wait.
Published byGertrude Haynes Modified over 9 years ago
1
1 Unit Test in VS 2010 Presented by ZAN ZAN KOE
2
2 Types of testing provided by VS Unit test Manual test Web Performance Test Coded UI Test Load Test Generic test Ordered test
3
3 Unit Test one of the earliest phases of testing test the smallest functional unit returning the expected result for different sets of parameter values a functional class method test which calls a method with the appropriate parameters
4
4 Unit Tests … Do not adversely impact the environment – If a row in a database is added during the unit test, it should be removed in the cleanup code Are independent of other unit tests Should be automated – Run with a single-click of a button – Run during Continuous Integration builds Can be run by anyone on the team
5
5 Unit Tests are Requirements Requirements should be clear and testable A well-understood requirement can be expressed – As a single unit test – As a single unit test driven by a data source – As a collection of unit tests When all related unit tests pass, then the requirement has been met – This is the basis for Acceptance Test-Driven Development
6
6 Unit Test in VS 2010 has great support for unit testing enables the team to write and run unit tests has the functionality to automatically generate unit test classes and methods generates the test methods or the base code for the test methods
7
7 Data Driven Unit Test is a unit test that is run repeatedly for each row in a data source to test an application that is used by different users
8
8 Workthrough Working with Unit Tests Working with Data Driven Unit Tests
9
9
10
10
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.