Showing posts with label TFS. Show all posts
Showing posts with label TFS. Show all posts

Monday, August 19, 2019

TFS - How to run Unit Test in TFS Build

This blog demonstrates step by step how to add unit test task in TFS build definition and run unit test from TFS build so that code only be deployed once all unit test are passed.

Here is TFS Build definition

TFS Build Definition
TFS Build Definition
  

In TFS Build Definition, the following steps are defined

1.   Get source code from specified branch
2.   Set assembly manifest data
3.   Build Source Code
4.   Publish the artifact of Built Source to respective staging folder 


Now we want to add Unit Test Task in TFS build definition so that we can able to run unit test from TFS build.

Microsoft provides Visual Studio Test Task which help us to run test with visual studio test runner from TFS build.

By using this Visual Studio Test in a build or release pipeline, we can also run functional tests (Selenium, Coded UI Tests and more) using the Visual Studio Test Runner 
 TFS - Visual Studio Test Task



Add Visual Studio Task:

TFS - Visual Studio Test Task

Friday, October 26, 2018

GIT Vs TFS pros and cons

In this blog, we will discuss about GIT (distributed version source control) and TFS (centralized version source control) and about their the pros and cons.

GIT (distributed version source control) : 


GIT  Version Source Control
  • GIT is a distributed version control system and developer can clone the remote repository on dev machine including history.
  • After cloning of remote repository on local machine, you can commit your local changes into local branch without talking to remote repository and it give leverage to developer that he/she can work in off-line mode without talking to remote branch.
  • GIT allows developer to create as many as local private branch and after completion of work, he/she can quickly merge local branch to remote branch or switch context between one local private branch to another and can quickly delete local private branch.
  • GIT is only source version control system and it does not provide build automation and other release management feature but TFS do.


TFS (centralized version source control)    : 
  • TFS is a centralized version source control system.
  • No concept of local check-in in TFS and local work-space always connect to central repository.
  • No concept of local branch.
  • If TFS Server is unreachable or forgot to check-in your code, and it is risk to losing your work
  • TFS is bigger than source version control system, it provides many beneficial things- build automation and release management, Bug tracking and completely agile supported system

TFS Version Source Control

Thanks for visiting  and please leave your comments, if you feel something missing

SQL Server - Identify unused indexes

 In this blog, we learn about the index usage information (SYS.DM_DB_INDEX_USAGE_STATS) and analyze the index usage data (USER_SEEKS, USER_S...