Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Installing or updating extensions or other Visual Studio components may corrupt Visual Studio's Component Model Cache, which can prevent C++test from launching. To clear the Component Model Cache, try to run cpptestcli with the -clearcmc option.

What can I do if C/C++test reports test reports a timeout during static analysis?

...

  • Increase the timeout limit by configuring the following advanced option:
    cpptest.analyzer.source.timeout=<TIMEOUT_IN_SECONDS> 
    See Configuring Advanced Options.
  • Disable the most time-consuming rules or metrics in your test configuration. The information about the times is included in the timeout message displayed on the console and in the report.
  • Contact Parasoft Support.

What if C/C++test fails to run static analysis when the workspace path is too long?

If the workspace path exceeds 126 characters, C/C++test may create internal paths that exceed the Windows maximum path length. The exact path length can vary because some directory names are generated dynamically. In such cases, the C/C++test engine may be unable to access internal files such as xtest.dll and read the license configuration. As a result, C/C++test will be unable to obtain a license and run static analysis.

To resolve this issue, use one or both of the following approaches:

  1. Move the C/C++test workspace to a directory closer to the drive root to reduce the total path length.
  2. Specify a fixed location for Parasoft local storage by setting the parasoft.local.storage.dir property using one of the following methods:

    • As an environment variable:

      Code Block
      CPPTEST_ENGINE_EXTRA_ARGS="-J-Dparasoft.local.storage.dir=C:\temp\workspace\.cpptest"
    • As a cpptestcli command-line parameter:

      Code Block
      -J-DCPPTEST_ENGINE_EXTRA_ARGS="-J-Dparasoft.local.storage.dir=C:\temp\workspace\.cpptest"
    • As a Java argument in the <cpptest_dir>\bin\cli\etc\cpptestcli.jvm file:

      Code Block
      -Dparasoft.local.storage.dir=C:/temp/workspace/.cpptest
    • In the IDE, as a technical support advanced option set for a specific workspace (see Configuring Advanced Options): 

      Code Block
      CPPTEST_ENGINE_EXTRA_ARGS="-J-Dparasoft.local.storage.dir=C:/temp/workspace/.cpptest"

What if one or more files were not found when collecting static coverage data?

...