Using TestStand with Git

The Agent Git plug-in allows you to seamlessly integrate TestStand with Git.

Features of the plug-in include:

  • Easy to install, easy to configure, easy to use
  • Add solutions, projects and files to Git, all from within the IDE
  • Check out, check in, get latest version all without leaving the IDE
  • Revert file changes from within the IDE
  • Provides the option of automatic file locking on check out and unlocking on check in
  • View file differences, file status and file history from within the IDE
  • The power of Git with the feel of Visual Source Safe
  • Can use an external difference tool to view file differences


Described below are the steps required to get Agent Git to work with TestStand and Git.

As an introductory tutorial, it is recommended you follow the steps as described.

Step 1: Agent Git Provider Setup

Inside TestStand with a workspace open, right click on the workspace and select the Properties menu to edit the workspace properties.

Change to the Source Code Control panel and select the Agent Git as the active provider as shown below:


Use the Run Agent Git button to bring up the Agent Git configuration utility to do the once off configuration of the plug-in as shown below:


NOTE: For this initial testing it is highly recommended you start with this minimal configuration since this is by far the simplest Git configuration model.

This will give you an opportunity to become familiar with how the plug-in works and at a later point it will be easy to reconfigure Agent Git to another repository location using a different protocol.

Step 2: Add the Workspace to Source Control

To add the workspace to Git use the Add to Source Control menu as shown below:


That will bring up the binding dialog as shown below:


Accepting that binding dialog will then prompt with the following response.


Answer yes to have the project added to the source control.

That same set of dialogs will be displayed for all projects in the workspace.

The final step of the check-in process is the Add to Source Code Control dialog shown below:


Add a check-in comment and complete the check-in by hiting the Ok button.

Step 3: Checking the Git Repository

Use the Git repoitory browser to check the workspace items have been added to the repository.

For example the image below shows the Git repository for the first project found in thta workspace:


Step 4: Using the Source Control Inside TestStand

At this stage the workspace has been imported into the repository and the project has been bound to the repository.

With the workspace fully configured, use the check out, check in, revert, compare or any of the other source control commands to manage the files in the workspace.

To access the source control from inside TestStand use the popup menu as shown below:


For example, using the check-out option from that menu will display the check-out dialog shown below:


Latest Version: Agent Git 1.88
Released: 24 th March 2023