ENTERPRISE

Visual Studio Team System 2008 : Working with Test Results (part 1) - Test as part of Team Foundation Server build

7/25/2012 6:14:47 PM
The test results are not only useful to see if the method and class are returning the expected result, but also to analyze the application and to verify the build. We can add the test as part of the Team Foundation Server automated build, so that we can verify the build and make sure the latest code checked in to the source control is working as expected. The build process produces the same results as we get when we run the test project and the results are stored in the Test Results folder. Whenever there is a test failure, we can directly create a defect from the test results window into the Team Foundation Server as a work item of type defect.

Test results

All the tests run through the Test List Editor or Test View window. Using the solution explorer will show the test results in the Test Results window. This window shows the status of the test and the link to the test result details. The test name is the same as the test result; .trx is the file created by the test run.

Test as part of Team Foundation Server build

The TFS is the place to maintain the code for all the projects including the test projects. Let us assume that we have a ClassLibrary project and the unit test project for the class library, and both are checked into the Team Foundation Server. Whenever there is a change or fix in the code, the test project has to run and verify that the fix is producing the expected result.

Team Foundation Server provides the automated build utility to build the team projects. There is a set of procedures to be followed to create the build project in TFS. The screenshot below shows the build project, which contains the class library project and the test project for the ClassLibrary.

The build project automates the process of building the projects in the solution selected for the build and can also run the test project after compiling and building it, which would verify the code fix. There are some options to be set while creating the build project.

The Selections option shown in the above screenshot selects the solution to build. The solution can be single or many. When the build starts, the TFS will start building the solutions as selected in the above screenshot. Once the solution is selected, the system will display the test lists within the solution. We can select the test list from the list shown.

The test lists shown in the above screenshot are the test lists created using the Test List Editor for the solution. All the test lists belong to the solution we selected in the previous screen. Each test list may contain more than one test. The tests in the selected test lists above are run after building the project.

Other  
  •  Finance - Apple Versus Google
  •  Oracle Coherence 3.5 : Testing and debugging Coherence applications
  •  Oracle Coherence 3.5 : Accessing the data grid (part 6) - Using the Coherence API - Implementing CoherenceTarget, Testing the Cache loader
  •  Oracle Coherence 3.5 : Accessing the data grid (part 5) - Using the Coherence API - Loader design, Implementing CsvSource
  •  Oracle Coherence 3.5 : Accessing the data grid (part 4) - Using the Coherence API - The basics: NamedCache and CacheFactory
  •  Oracle Coherence 3.5 : Accessing the data grid (part 3) - Configuring Coherence
  •  Oracle Coherence 3.5 : Accessing the data grid (part 2) - Configuring the development environment
  •  Oracle Coherence 3.5 : Accessing the data grid (part 1) - Coherence console
  •  Oracle Coherence 3.5 : Installing Coherence, Starting up the Coherence cluster
  •  The Go-To Reference Design Map For The Cloud?
  •  Separating BPM and SOA Processes : SOA-Oriented Disputes with BEA
  •  Science! – Spintronics
  •  Linux - The Operating System With A Pure Heart (Part 2)
  •  Linux - The Operating System With A Pure Heart (Part 1)
  •  What's Your Strategy For Today’s Server Room Challenges?
  •  Truly Transparent Trinkets
  •  Gamma – Ray Lens …Made Possible
  •  Tech Chance - Revamps …Worsts Ever!
  •  Organic Computing (Part 2)
  •  Organic Computing (Part 1)
  •  
    Most View
    Microsoft XNA Game Studio 3.0 : Displaying Images - Using Resources in a Game (part 3) - Sprite Drawing with SpriteBatch
    Web Security : Automating with LibWWWPerl - Checking Session Expiration
    The Truth About Free Trials (Part 1)
    Thunderbolt vs USB 3.0
    Share And Sync Data Between Your Devices
    CorelDraw 10 : Printing - Preflight and Print Preview
    Sony Xperia Z - Back In The Top Three?
    SQL Server 2005 Native XML Web Services : Exposing SQL Programmability as Web Services (part 1)
    Televisions Award – Q1 2013 (Part 1) : Sony KDL - 40HX853, Sony KDL-32HX753, Sony KDL-46HX853, Panasonic TX-P50GT50
    Damson Twist – Wireless Portable Bluetooth Speaker With Serious Bass
    Top 10
    10 Contenders For The 'Ultimate Protector' Crown (Part 5) : Microsoft Security Essentials 4.1, AVG Antivirus Free 2013
    10 Contenders For The 'Ultimate Protector' Crown (Part 4) : Norton Internet Security, Avast Free Antivirus Version 7
    10 Contenders For The 'Ultimate Protector' Crown (Part 3) : Eset Smart Security 6, Kaspersky Internet Security 2013, Zonealarm Internet Security 2013
    10 Contenders For The 'Ultimate Protector' Crown (Part 2) : Bitdefender Total Security 2013, Trend Micro Maximum Security, Mcafee Internet Security 2013
    10 Contenders For The 'Ultimate Protector' Crown (Part 1)
    Sony Xperia TL - Much Improved But Still Imperfect (Part 3)
    Sony Xperia TL - Much Improved But Still Imperfect (Part 2)
    Sony Xperia TL - Much Improved But Still Imperfect (Part 1)
    Simple.TV - Transmits TV Programs To Mobile (Part 2)
    Simple.TV - Transmits TV Programs To Mobile (Part 1)