Versions Compared

Key

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

...

C/C++test plugin for Eclipse: eclipse.exe -vmargs -Xmx1400m

You canalsocustomize the amount of allocated memory with the CPPTEST_ENGINE_EXTRA_ARGS option by specifying the value of the -Xmx setting. This may be particularly useful for when you perform static analysis or report results to DTP. See Configuring Advanced Options for details.

If C/C++test runs out of memory when generating the report, see What if C/C++test runs out of memory when generating the report?.

...

Each item in the *.lst file is treated as a separate entry.

What if I encounter issues while editing tables in the Test Case Editor

If you are experiencing issues while editing tables in the Test Case Editor (e.g., cell editing is difficult, cursor navigation does not work, changing the column width is not possible), then check if your Linux distribution uses a Wayland display server. If you use a Wayland display server, we recommend changing it to X11.

You can verify what display server your Linux distribution is using by:

  • executing the following command in the Linux terminal: "echo $XDG_SESSION_TYPE" (working in most distributions)
  • checking the desktop environment settings (not available in all distributions)
  • checking the current setting on the login screen, usually by clicking the wheel/cog/menu icon on the login screen (not available in all distributions; the Automatic Login feature needs to be turned off)
  • checking the Windowing System field on the Settings/About page

You can change your display server to X11 by:

  • editing the display manager (GDM, SDDM, etc.) configuration file, e.g. /etc/gdm3/custom.conf for Ubuntu with GDM (a reboot is required)
  • clicking the wheel/cog/menu icon on the login screen and choosing X11 (not available in all distributions; the Automatic Login feature needs to be turned off)

Reports

How can I create a report with a list of active coding standard rules?

When generating a report, specify a report configuration file that contains the following entry:

results.report.active_rules=true

What if some characters fail to be properly displayed in C/C++test reports?

Reports generated by Parasoft products require a sans-serif font to be available in your environment. If your report fails to correctly display some characters, such as national characters, ensure that a sans-serif font is installed on your system.

...

Reports

How can I create a report with a list of active coding standard rules?

When generating a report, specify a report configuration file that contains the following entry:

results.report.active_rules=true

What if some characters fail to be properly displayed in C/C++test reports?

Reports generated by Parasoft products require a sans-serif font to be available in your environment. If your report fails to correctly display some characters, such as national characters, ensure that a sans-serif font is installed on your system.

Anchor
What if C/C++test runs out of memory when generating the report?
What if C/C++test runs out of memory when generating the report?
What if C/C++test runs out of memory when generating the report?

C/C++test uses a separate JVM to generate reports after code is tested. You can increase the amount of memory allocated for generating C/C++test reports by configuring the parasoft.report.separate_vm.xmx system property, for example:

Code Block
languagetext
parasoft.report.separate_vm.xmx=1280m

You can configure the JVM that generates reports to use Java with a larger maximum memory size by setting the parasoft.report.separate_vm.java_home system property, for example:

Code Block
languagetext
parasoft.report.separate_vm.java_home=C:/Program Files/Java/jdk-12.0.1

Working in the IDE

What if the Parasoft menu is not available?

Set C/C++ or C++test as the current perspective (by choosing Window> Open Perspective> Other, then choosing C/C++ or C++test from the dialog that opens).

What if an overlay scrollbar in Eclipse hides some C/C++test's GUI elements on Linux?

Due to a bug in some Eclipse versions, an overlay scrollbar may partially hide the last item in a list or tree, preventing the user from clicking the item. As a workaround on Linux, you can disable overlay scrollbars by setting the following system variable: GTK_OVERLAY_SCROLLING=0

What if the Parasoft Welcome Page cannot be displayed on Ubuntu Linux?

When using latest Ubuntu Linux (21.10 or newer), consider installing additional 'webkit2gtk-driver' system package with the following command:

Code Block
> sudo apt install webkit2gtk-driver

What if the HTML content (C/C++test's rule documentation, reports etc.) cannot be displayed on Ubuntu Linux?

When using latest Ubuntu Linux (21.10 or newer), with Snap-based Firefox browser as default, the Eclipse IDE may be unable to show HTML content correctly (see also: https://github.com/eclipse-platform/eclipse.platform.swt/issues/221). There are two workarounds:

  • Install a non-Snap version of Firefox (or other browser) and set it as a default system browser.
  • Configure Eclipse to use "external web browser" in Preferences> General> Web Browser> External web browsers.

Note: In order to configure Firefox as an "external web browser", use the following settings:
Location: /usr/bin/env
Parameters: firefox %URL%

What if Eclipse reports syntax errors on code that is correct in test suites generated with C/C++test?

Eclipse may mark correct code elements in test suites with a red underline to indicate potential errors when Eclipse's CDT indexer is unable to recognize C/C++test-specific syntax. To prevent this, you can enable the Parasoft C/C+test Include Paths provider in the project properties:

  1. Go to  C/C+ General> Preprocessor Include Paths, Macros etc.
  2. Open the Providers tab.
  3. Enable the Parasoft C/C+test Include Paths provider.

This workaround is only available for CDT-managed projects.

What if I encounter issues while editing tables in the Test Case Editor when using Eclipse IDE on Linux

If you are experiencing issues while editing tables in the Test Case Editor (e.g., cell editing is difficult, cursor navigation does not work, changing the column width is not possible), then check if your Linux distribution uses a Wayland display server. If you use a Wayland display server, we recommend changing it to X11.

You can verify what display server your Linux distribution is using by:

  • executing the following command in the Linux terminal: "echo $XDG_SESSION_TYPE" (working in most distributions)
  • checking the desktop environment settings (not available in all distributions)
  • checking the current setting on the login screen, usually by clicking the wheel/cog/menu icon on the login screen (not available in all distributions; the Automatic Login feature needs to be turned off)
  • checking the Windowing System field on the Settings/About page

You can change your display server to X11 by:

  • editing the display manager (GDM, SDDM, etc.) configuration file, e.g. /etc/gdm3/custom.conf for Ubuntu with GDM (a reboot is required)
  • clicking the wheel/cog/menu icon on the login screen and choosing X11 (not available in all distributions; the Automatic Login feature needs to be turned off)

...

C/C++test uses a separate JVM to generate reports after code is tested. You can increase the amount of memory allocated for generating C/C++test reports by configuring the parasoft.report.separate_vm.xmx system property, for example:

Code Block
languagetext
parasoft.report.separate_vm.xmx=1280m

You can configure the JVM that generates reports to use Java with a larger maximum memory size by setting the parasoft.report.separate_vm.java_home system property, for example:

Code Block
languagetext
parasoft.report.separate_vm.java_home=C:/Program Files/Java/jdk-12.0.1

Working in the IDE

What if the Parasoft menu is not available?

Set C/C++ or C++test as the current perspective (by choosing Window> Open Perspective> Other, then choosing C/C++ or C++test from the dialog that opens).

What if an overlay scrollbar in Eclipse hides some C/C++test's GUI elements on Linux?

Due to a bug in some Eclipse versions, an overlay scrollbar may partially hide the last item in a list or tree, preventing the user from clicking the item. As a workaround on Linux, you can disable overlay scrollbars by setting the following system variable: GTK_OVERLAY_SCROLLING=0

What if the Parasoft Welcome Page cannot be displayed on Ubuntu Linux?

When using latest Ubuntu Linux (21.10 or newer), consider installing additional 'webkit2gtk-driver' system package with the following command:

Code Block
> sudo apt install webkit2gtk-driver

What if the HTML content (C/C++test's rule documentation, reports etc.) cannot be displayed on Ubuntu Linux?

When using latest Ubuntu Linux (21.10 or newer), with Snap-based Firefox browser as default, the Eclipse IDE may be unable to show HTML content correctly (see also: https://github.com/eclipse-platform/eclipse.platform.swt/issues/221). There are two workarounds:

  • Install a non-Snap version of Firefox (or other browser) and set it as a default system browser.
  • Configure Eclipse to use "external web browser" in Preferences> General> Web Browser> External web browsers.

Note: In order to configure Firefox as an "external web browser", use the following settings:
Location: /usr/bin/env
Parameters: firefox %URL%

What if Eclipse reports syntax errors on code that is correct in test suites generated with C/C++test?

Eclipse may mark correct code elements in test suites with a red underline to indicate potential errors when Eclipse's CDT indexer is unable to recognize C/C++test-specific syntax. To prevent this, you can enable the Parasoft C/C+test Include Paths provider in the project properties:

  1. Go to  C/C+ General> Preprocessor Include Paths, Macros etc.
  2. Open the Providers tab.
  3. Enable the Parasoft C/C+test Include Paths provider.

...


Scroll Pagebreak