Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SOAVIRT_9.10.4_CTP_3.1.1

...

  1. Choose Parasoft> Preferences to open the Preferences dialog.
  2. If you have not already done so, configure source control preferences as follows:
    1. Select the Parasoft> Scope and Authorship category in the left pane of the Preferences panel.
    2. Enable Use source control (modification author) to compute scope.
    3. Select the Parasoft> Source Control category in the left pane of the Preferences panel.
    4. Specify your team’s source control repository (see Connecting to Your Source Control Repository) or enable the Use DTP settings option (see Connecting to Parasoft Development Testing Platform). 
  3. If you have not already done so, configure Team Server preferences (see Connecting to Parasoft Team Server).

    Info
    iconfalse
    titleTeam Server Configuration Note

    If your Parasoft solution uses Team Server Named Accounts, ensure that Team Server user accounts can access the Team Server 'Code Review' directory. For details on opening the appropriate path permissions, see the 'Named Accounts' section of the PST Admin Guide.'

  4. Storing code review data in Report Center is recommended for more efficient storage. See Connecting to Project Center for details.
  5. (Desktop installations only) Select the Parasoft> Code Review category in the left pane, then complete the Code Review settings as follows:
    • DTP Settings
      Displays the DTP server host name you have configured. You can disable the Default option to modify the port number.
    • General Settings
      • User name: Enter a unique Code Review name for the current user. The same user name specified here should also be specified in the Code Review Test Configuration.
      • Show user assistant during scanner run: This enables a user assistant, which allows you to specify a task identifier, enter notes, specify review priority, and enter a specific reviewer or monitor for each Code Review run. This is intended for pre-commit code reviews.
      • Notify me about new or updated reviews every ___ minutes: Select this if you want to be alerted when you need to review code and/or when code that you authored has been reviewed. This option is recommended.
      • Show completed tasks by: If you want the code review tasks tree to show completed tasks as well as active ones, enable this option and specify the range of completed tasks you want shown. For example, if you want to see all tasks completed within the past week, choose 7 days.
    • Compare Editor
      • Reuse single compare editor: If want Code Review to open each revision in the same editor, enable this option.
      • Close compare editors on commit review action: If you want the compare editor to be closed when a revision is committed, enable this option.
      • Show structural changes: If you want the compare editor to show structural changes, enable this option.
      • Show suppressed parts: If you want the compare editor to show details from code excluded from analysis (as described in Hiding Differences for Specific Pieces of Code), enable this option.
      • Show the newer source on the left | right: Specifies where the most recent source is positioned in the comparison editor.
    • Opening Local Sources in Existing Projects
      • Use source control to recognize local sources: If you want to allow Parasoft to use source control data in order to better recognize the sources found, enable this option.
      • Always open without asking when path of a local source is different than remote path (single source matches only): If you want to force Parasoft to always apply a local source path (if it is different than the remote one), enable this option.
      • Show warning when the file has been changed since issue was created: If you want to receive warnings if the Code Review task becomes outdated (i.e., because the current source code has been modified since the Code Review task was created), enable this option.
    • Appearance: Allows you to customize what labels are used in the code review task tree and determine whether tasks for multiple revisions of a file are merged.
  6. (Desktop installations only) Select the Parasoft> Code Review> Team category in the left pane, then complete the Code Review settings as follows:
    • General settings: Indicate whether you want to use the default workflow or the restricted workflow. For an overview of these options, see Workflow Overview.  If you prefer, you can enable a restricted workflow directly on Team Server using the property key path /usr/{user}/codereview/workflow, and the property value restrict. If you want to revert to a default workflow policy, change the property value to default (see "Managing Team Server Data" in the Development Testing Platform documentation).
    • Import tasks from Team Server to Report Center: Optimizes performance by storing network data in the database. See Importing Code Review Data from Team Server to the Report Center Database.
    • Task categories: This allows you to customize the list of categories that reviewers can use to categorize their comments.


 

Info
iconfalse
titleMigrating Data Previously Stored on Team Server

Team Server storage is deprecated. To migrate data from Team Server to the current storage method (Report Center):

  1. In DTP, choose Team Server from the settings drop-down and click Data Storage
  2. Click on the root folder for the tcm user account that was being used for code review.
  3. In the 'codereview' subfolder, set or change the value of the 'storage.type' property to 'db.storage.type'.
  4. Restart your IDE.
  5. In the preferences page described here (Preferences> Parasoft> Code Review> Team) click the Import button to transfer data from Team Server to Report Center.

   7. Click Apply to apply your settings.
   8. Click OK to set and save your settings.

...

For example, assume that your code review results are as follows: 


 


Two files were scanned and two revisions were accepted, but there is no code review package to publish because the scanned code had modifications made by the user "pietrek." This user is not listed in the Code Review> Authors tab of the test configuration.

...

For example, assume that you have the following results 


 


and that your report indicates the following:

 


 


You can resolve the problem by modifying the Test Configuration to either assign that area of code to a reviewer, or to assign a reviewer to all code modified by that author.

...