This topic explains how to connect C++test to your source control repository.

Sections include:

About C++test’s Source Control Support

Any source control system that plugs into your C++test environment can be used to manage your source and test files.

If your team is using a one of the specified supported source control system (see list below) and performs the necessary configurations (as described later in this topic), Parasoft can:

Parasoft currently supports the following source control system.

In addition, you can use Parasoft’s source control API to add seamless integration with any other source control tool your team happens to be using. For details, see Adding a Custom Source Control Integration.

Some source controls (including ClearCase, Perforce, Synergy, and Visual SourceSafe) require users to mark (lock) sources before editing them. If you are using one of these source control systems and you prompt C++test to perform an operation that involves editing a "read-only" file in source control, it will first open a dialog asking you whether you want to make the file writable and lock it. Click OK, then provide your source control username and password in the next dialog that opens; this allows it to access the source control system and set the lock.

Enabling Source Control Support

To enable support for any of the supported source control systems:

  1. Make sure that the command line client for the given source control is on the system%PATH%/$PATH and is available when C++test is launched.

  2. Choose Parasoft> Preferences. The Preferences dialog will open.
  3. Select Parasoft> Scope and Authorship in the Preferences dialog.
  4. Check Use source control (modification author) to compute scope.
  5. Select Parasoft> Source Controls in the Preferences dialog.
  6. If the appropriate repositories ARE already set (from the auto-configuration process described in C++test Configuration Overview), enter your user and password, and specify the path to your source control client executable (if it is not already on your system path).



  7. If the appropriate repositories ARE NOT already set (from the auto-configuration process described in C++test Configuration Overview), specify them as follows: 
    1. Enable the check box for the source control system you want to use.
    2. If the source control client executable is not already on your system path, specify the path to it in the text field to the right of the source control system’s name.
    3. Enter the source control properties required for the selected type of source control system by clicking New in the Defined Source Controls table, completing the Create Source Control Description dialog’s fields as appropriate for your system, then clicking OK.
      • Note that the fields in the Create Source Control Description dialog are described in the following sections.
    4. Click OK to close the Source Control Description dialog.
  8. Click Apply, then OK.

To test the integration:

  1. In the Parasoft environment,  open a project that is checked out from the repository.
  2. Open a file in the editor.
  3. Right-click the source code, and choose Parasoft> Show Author at Line. If the correct author is shown, the integration was successful.

AccuRev Configuration

When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:

ClearCase Configuration

To use ClearCase with C++test:

When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:

CVS Configuration

To use CVS with C++test, ensure that the .cvspass file is in one of the following locations:

When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:

General tab

Custom SSH/CVS_RSH tab

Git Configuration

To use Git with C++test:

  1. git clone <repository>. Note that the repository must allow anonymous pulls.
  2. If cloning from a git:// url, then the git push url must be configured if you want to be able to have git automatically push generated test cases that get checked in.
  3. Set git config on the newly created repository user.name (this step can be skipped if a global git user.name is already set). Note that this user.name must match the user's DTP user name.

When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:

Perforce Configuration

When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:

Serena Dimensions Configuration

When you are enabling source control support, specify the repository properties in the following tabs.

Properties tab

Workset Map tab

If the project has been downloaded/moved to a location other than default work area, use this tab to specify a mapping between the project (or stream) with the Serena repository and the local project.

If you are working in the default work area, you do not need to define mappings.
 


Enter an expression that maps workspace resources to Serena Dimension repository paths.

StarTeam Configuration

To use StarTeam with C++test ensure that:

For Visual Studio plugins, Parasoft StarTeam support is available for VS 2005 and VS 2008. When you are enabling source control support, specify the following repository properties:

Subversion Configuration

Parasoft’s Subversion support is based on the command line client 'svn'. To use Subversion with C++test, ensure that:

When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:

Synergy Configuration

Synergy 7.0 introduces a new, faster way of working called Web mode. C++test supports both of the following Synergy/CM communication modes:

When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:

Team Foundation Server Configuration

C++test works with TFS 2008, 2010, 2012, 2013, 2015

C++test for Visual Studio requires Microsoft Team Explorer to be available at the client machine. For Visual Studio 2010 or later, Team Explorer is already installed. For Visual Studio 2008 it must be installed manually. You can access it at  http://download.microsoft.com/download/f/7/5/f758bcba-5b80-4e7d-bcc7-9612e58e7cd5/VS2008TeamExplorer.iso.

TFS 2013 requires VS 2013 with Team Explorer, VS 2012 or VS 2010 (with the latest updates).


When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:

By default, C++test uses the cached credentials for accessing TFS (this could be your user login or some previously logged in information). You can provide custom credentials if you want to use them instead of the cached ones.

Visual SourceSafe Configuration

When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:

Specifying Source Control Definitions via localsettings

Source control definitions can be specified in localsettings (e.g. for sharing team-wide settings via  DTP or specifying options at the command line). See Configuring Localsettings for details.