-
What specific functionality does the "Instrument Selected Source File(s)" Check Box have?
By default, when a file is imported into an Eclipse Project, this box is checked. I have looked in your documentation to try to get a specific idea on what "Instrumentation" means and what impact it will have on things like code coverage, static analysis, stubability, etc. For example, if I don't want a file included in…
-
Copy Constructors and Copy Assignment Operators Static Analysis Rule [MRM-49]
Rule: MRM-49-3 --> A copy constructor and a copy assignment operator shall be declared for classes that contain pointers to data items or nontrivial destructors. This Static Analysis rule requires that I have to adhere to the Rule of 3 (now rule of 5 if moves are included). We have a destructor defined, but not the copy…
-
Running the Test Executable and Reviewing Results
Hi all, I tried to get the coverage report for generated c++test with the hard-target(i.mx6quad_board). I did everything like create custom-complier, build runtime library(libcpptestrun.so) with custom toolchain. After i successfully generate foo.exe file and then i am also able to run that .exe file on the target i got…
-
Empty CppTest Result Logs
Hi, I'm currently using Wind River Workbench 3.3.6.1 and C++test for Eclipse 9.5. When I run my auto-generated unit tests (compiled with the ccpentium) against a vxsim target everything works great. My cpptest_results clog/tlog files are created and I can generate my reports. However, when I run through a Target Server…
-
Test execution: error linking test executable for Test unit for selected sources.
I created a project in Eclipse 4.6(Neon) in ubuntu 16.04 with parasoft_eclipse_plugin. The test is generated successfully but i am not be able to run the test file because of the linking error. So, my question is how can i link a library that is defined outside of the project.
-
Test Case Editor
Hi, I have some issues to create a test case with the editor of this function (which is a 1st order filter): _void Filter1stOrder ( T_1STORDFLT_VAL * p_ptVal, /*in out*/ const T_1STORDFLT_COEFF * p_ptCoeff, /*in*/ VCMS_real fIn, /*in*/ VCMS_real * p_fOut, /*in out*/ ) { *p_fOut = (p_ptCoeff -> fXiCoeff) * fIn; *p_fOut +=…
-
Trouble configuring Author Mapping XML file
I'm having trouble configuring the Authorship for a project. I've made an authorship mapping xml file and edited the .properties file as described here My xml map contains definitions for many authors across multiple files. I generate a report, but in the report it only lists a single author, defaulted to source control. I…
-
Creating Custom Coding Rule for Comments
I am looking to create a custom ruleset to check whether code contains certain comments (block comments/normal comments) during static analysis. Any assistance on this regard would be highly appreciated
-
Appling C++Test unit tests to library projects using Code Composer 7 embedded
Greetings, I'm trying to generate unit tests for a code base that implements a library for an embedded application built for Code composer. Unlike the Parasoft Visual Studio version, the CCS 7 system doesn't seem to understand how to run the linker for the TI compiler on a 'project' that only creates an library archive. Do…
-
Unit Test unresolved cpptest objects.
The Parasoft plugin for TI Code Composer doesn't seem to pickup the cpptest libraries during a 'Build Unit Test' . The linker options on the project Properties/Parasoft/C++test/Build Settings/Linker options: are '${cpptest:original_options} ${cpptest:project_lib_files}'. Do i need to manually build the libraries?
-
How to clear temporary files in C++Test Desktop
There is a way to quickly clear the temporary files. This is expecially useful action to perform when debugging issues:
-
Header Files Not Getting Listed in report.html Files
Hello, I have a situation with v10.3 C++test where header files are not getting listed in the report.html files even though the Console output shows numerous entries of "Collecting header files for ...". I am utilizing the -module parameter. What could be causing this issue? Thanks.
-
How to add the rule to MISRA 2012 rulemap?
Suppose I created a rule and I want that rule to behave (name and severity wise ) as a MISRA 2012 rule. Where do I add it to MISRA 2012 rulemap?
-
When Triggers Generation of *_dev1.html Reports
Hello, For C++test v10.3, What triggers the generation of *_dev1.html reports? Are they only generated when Severity 1 findings are detected?
-
Enabling C++Test 10.3.4 Rules in DTP
The newest version of C++Test (10.3.4) contains new and updates rules that are not available in DTP 5.3.3. These rules and rule documentation must be added to the DTP server in order to make the new rules available in the Test Configuration GUI and to be able to view the rule documentation. The following method outlines…
-
Skipped Files Listing
This is probably obvious however I've had no luck locating a listing of the 'skipped' files.
-
How to use Parasoft Dynamic stubs #6
Hello Community, I am a first time user of Parasoft's dynamic stubs. I am evaluating this feature as an alternate to using Google mock. If I have several Eclipse projects all containing different code, but the code under test calls a common function and I want to create a stub for that function that can be used by all…
-
Static Analysis Findings by Run Report
Is there a widget or an easy way in DTP that lets you view the static analysis findings for a particular run? The documentation (Link: https://docs.parasoft.com/display/DTP533/Static+Analysis+Findings+by+Run+Report) shows a tedious way to get a run id. Just wondering if there was an easier way to display it in the…
-
How to use Parasoft C++ Dynamic stubs
Hello Community, I am a first time user of Parasoft's dynamic stubs. I am evaluating this feature as an alternate to using Google mock. If I have a function: void Func3() { int b = 1; Func4(*b); Func5(b); } In my test case for testing 3 what is the appropriate Dynamic Stubs calls to have Func4 output the value of b to 5…
-
How to use Parasoft Dynamic stubs #4
On https://docs.parasoft.com/display/CPPDESKE1033/Working+with+Complex+Types, can you provide an example of the stub for Line moveLine(Line line, int xoff, int yoff); but using the “Basic Approach to Working with Complex Types”?
-
How to use Parasoft Dynamic stubs #5
Hello Community, I am a first time user of Parasoft's dynamic stubs. I am evaluating this feature as an alternate to using Google mock. Can stubs be created for functions in the same class (C++) or same the same file(C)?
-
localsettings.properties File Generation and Population
localsettings.properties files store important information regarding Parasoft tool's stored configurations as well as project parameters. A localsettings.properties file is required to utilize CLI integration, back up an installation, or transfer configurations from one installation to another. For 9.x dotTEST, C++test,…
-
cpptest does not generate bugs report!
I am running cpptest with the command line using cpptesttrace and cpptestcli. I do have cmake build system. The analysis has never caught any bug and always shows that the number of files that have been checked to 0. Not sure what is the issue exactly. Here are the commands that I run cmake -G "Unix Makefiles" ..…
-
Parasoft announces the release of C/C++test, dotTEST, Jtest 10.3.3, and Parasoft DTP 5.3.3
We are happy to have released the latest updates to Parasoft’s development testing products, including the 10.3.3 versions of Parasoft C/C++test, Parasoft dotTEST, and Parasoft Jtest. In addition to the 5.3.3 versions of Parasoft DTP and the Parasoft DTP Enterprise Pack. For this update, we focused on providing customers…
-
Parasoft support for VS 2017
Hi, Please find the below plugins we are using for our projects for VS 2013. We want to use for VS 2017 IDE. Is the support available? • For the C# plugin use: parasoft_dottest_10.1.1.exe • For the C++ plugin use: parasoft_cpptest_10.1.1_linux_x86_64.tar.gz
-
Is there a built-in method to measure runtime at file-level for Flow Analysis & CDD rules?
We were informed of a method called PSRC that we used to gather this data for Pattern-based rules, but we would like to know if there's also a built-in method for Flow Analysis & Code Duplication rules.
-
TestCase Generation in a Common path
Hi Guys, Can we create our test cases and run them from a common place out side of the project? Like If I have my VS solution in MainProject folder and it have 20 projects. Now I'm able to generate and run them from project's location. What I want is to create a Tests folder outside the MainProject, which contains folders…
-
How to set compiler path in cpptestcli?
I'm using Parasoft C++test 9.0. I've used "cpptestscan.exe" to create build data file(bdf), then I want to run my ruleset with "cpptestcli.exe". When I use "New Project -> C++ Test -> Create project from a build data file" in Parasoft IDE(Eclipse based), it allows me to configure compiler setting(family, c compiler, c++…
-
Parsing error
I am trying to check "Coding Standarts" of our project with Parasoft. This is a C project which uses "gnu.cross.cortexm3". I open this project with Parasoft and try to test it with "Example Configurations" but it skips all the files in project and doesn't check any file. When I create a new simple makefile C project(Hello…
-
Issue running unit tests (cpptest) using C++Test (9.6) and Cygwin (GCC 6.4)
Disclaimer: I have not used C++Test in the past. I have installed Cygwin with GCC version 6.4.0 but the latest version of the GCC toolchain that C++Test version 9.6 seems to support is 4.9.x. I haven't figured out how to install an older version of GCC to match C++test requirements. I figured that I could run static…
-
Setting Environment variables and supply arguments
Hi, I am currently using the cpptest plugin v9.5 for Eclipse Luna on a RHEL 7.2 environment. My c++ application requires some command line arguments to be supplied, as well as me setting an environment variable for loading of shared libraries. Where do I set them? In addition, somehow it is unable to find and read the test…
-
Is there a way to get the URL to a published DTP report immediately after running cpptestcli?
We are looking to make this information easily available to the user either straight from a bench command-line execution or after a Jenkins run is complete (automated e-mail or similar messaging system). Currently, a user has to manually log into DTP and navigate to the reports themselves to view this report.
-
cpptest warning report format
I need to create "text based" warning report from cpptest analysis. Is this possible? it seems that other formats are supported (e.g PDF and XML) , but not text. Any idea?
-
how to generate and populate localsettings.properties files
localsettings.properties files store important information regarding Parasoft tool's stored configurations as well as project parameters. A localsettings.properties file is required to utilize CLI integration, back up an installation, or transfer configurations from one installation to another. You will first need to to…
-
Standard Process for Upgrading JTest Eclipse Plugin
Hi Parasoft. We recently received your advice on best practice for upgrading Parasoft Desktops / Eclipse plugins. We wanted to share this process on the Forum for other users/customers. Please will you review the process steps and comment if any amendments are needed. The requirement was: to upgrade the JTest Eclipse…
-
Cannot Find Help or Rule Documentation in Visual Studio 2012 and Above
Reason: By default, Visual Studio 2012 opens all help documentation in a web browser, which does not recognize the Parasoft documentation. The Parasoft documentation must be opened through the Visual Studio Help Viewer. Solution: To configure Visual Studio 2012 to use the Help Viewer instead of a Browser, go to the menu…
-
How to install multiple versions of Parasoft into Visual Studio
Prior to perform following action, please make sure to uninstall all Parasoft plugins for Visual Studio. Performing the Installation * Double-Click on our installer. * Proceed with the normal installation steps until it asks where to install Parasoft Test. * On the Select Destination Location page, locate the "Advance"…
-
Could not create the Java Virtual Machine
If you receive a start-up error when starting a Parasoft Test tool with the error message: "Error: Could not create the Java Virtual Machine. Error: A fatal exception has occured. Program will exit." followed by another message popup (see images in solution), this may mean there is not enough continuous memory to allocate…
-
How to un-lock a workspace after a force-close
Description: Parasoft-Test based products (such as SOAtest, Jtest, or Virtualize) are shipped as Eclipse plugins. When Eclipse starts, it opens a workspace - locking it so that other Eclipse instances cannot use the same workspace at the same time. When Eclipse shuts down, this workspace is then un-locked. Cause: When one…
-
How to remove Built-in test configuration after the installation is completed
In rare cases, an organization would like to standardize into few selected test configurations and would not like to show all available built-in test configurations from Parasoft solutions such as C/C++test and Jtest. This is not recommended to remove any built-in test configuration and this process must run again as a…
-
Test Configuration - Scope Filters for static code analysis
How to filter specific packagesHi Is there a way to filter by package names (full or partial) so that the static analysis may focus on that set of classes?