-
secondary report generated
The current automated process is configured to provide the analysis reports in html format. Is there a solution available to generate a pdf formatted report in addition to the current html, at analysis-run-time? If NOT, what is the mechanism to access and use (off the standard package) the embedded pdf-converter so that…
-
Professional plugin @Eclipse: project environment variable(s) made visible to Parasoft plugin
I have defined a project environment variable (USER: CONFIG type, via [ Project > Properties > C/C++ Build > Environment ] ) that is supposed to be dereferenced inside the "Build data file:" configuration, as follows: PATH_TO_BDF = BuildOutputs/parasoft ${project_loc}/${PATH_TO_BDF}/cpptestpscan.bdf It seems that "Parasoft…
-
Import Test Configuration from Rule Names
Is there a means to import a file that has a list of the rule names, i.e. BD-API-NEGPARAM, to create a test configuration?
-
C++ test Report: Could not build Analysis data
I have a C++ project that is built in Eclipse with GCC/G++ compiler. The project can be compiled successfully and run without problems, but when I try to perform static analysis via cpptestcli, the report generated show the following error: ........./ConfigMgr/Common/ConfigParser.cppBugDetective checker: could not build…
-
gitlab C/C++ static code analysis integration
I saw that gitlab integration is supported, but I cant find any documentation about it. Could you provide me information how it is done? I would really like to use this tool, because it has a full support of CERT C rules.
-
How to install C++ Test Professional on multiple IDEs
We have C/C++ Professional. It is currently installed on TI Code Composer Studio IDE. I would also like to have it installed on NXP S32 Design Studio. How can this be done?
-
Setup error
hi, I am using c++ test 10.4.2 in VxWorks 7. in my project I am using atomic operations (using the #include <"atomic">, if I remove the atomic there is no issue) the project compiles in the VxWorks but once running the c++ test on the project I am receiving the following setup error:
-
Report Generation Parasoft GUI
I wish to store reports from Static Analysis, Test Case Execution etc. automatically in seperate locations using properties file. Is it possible to do this in Parasoft Eclipse Plugin? Does report.location parameter apply for GUI as well? Greetings, Tejashree
-
remove() may lead to race conditions
Hello, I'd use the function remove() in order to delete a file in my project. I tried also with unlink() but I have the same violation: Usage of functions prone to race is not allowed (SECURITY-19-2) This file removal is in the main thread, so I can suppress that rule, but it will be nicer if I will found an alternative.…
-
Tasking - running UT on simulator
In the "Run Altium TASKING CTC Tests" configuration there are couple of steps that I don't really understand: Here is what we see in customer's console log: ...done. Copying file... "C:\work\unit_test\megartos\MConfig" -> "C:\Users\bhopkins\parasoft\workspace.cpptest\vdm_x2_proj\unit-data\current_tubf179707\MConfig" Source…
-
Display code coverage for CppUTests
My Goal: My project consists of three C++ libraries and a set of existing CppUTest tests that unit test the classes in those libraries. My goal is to see the code coverage, in the libraries that is caused by running the CppUTest tests. The libraries and test are built by CMake. This is in a CentOS-7.2 Linux environment.…
-
Rules Suppression Question, Source of a warning from a #define MACRO.
Question: Can we place the suppression in the MACRO and will the Parasoft tool recognize it, and suppress the warning in consuming .c files? We are struggling to get this construct to work. We want to be able to suppress the warnings from where the Macro is defined in the header file, instead of having to modify 1000's of…
-
Missing CWEs from security compliance pack
I'm trying to configure custom tests for C/C++ static analysis. I'm using Mitre CWE's library and some are in the CWE Top 25 + On the Cusp 2019. I do have the Security Compliance pack installed. However, some CWE which are listed on the Top 25 + On the Cusp 2019 are not shown in the rule tree in test configuration. For…
-
Collect Stub Information Fails To Find Identifier
Hello, I am using Parasofts C/C++ Test in an embedded environment; * IDE: Code Composer Studio v8.2.0.00007 * Device: TMS320f28075 * Compiler: ti-cgt-c2000_18.1.3.LTS * Product: Parasoft C/C++ Test Professional 10.4.2 Whilst trying to run the built in "Collect Stub Information" operation Parasoft cannot find certain…
-
How do I define the execution sequence of the test cases in a test suite?
I need to run test cases in order. How do I do that? I have tried ordering the macros and the testcases in the testsuite source file but that didn't work.
-
Support for unit tests using Green Hills development tools for a PPC target?
I need to run unit tests on my target system (custom, using a PPC core.) We are using the Green Hills dev tools to build our production code, and I need to integrate the C/C++ Code into that build system. I'm down to two unresolved externals: cpptestTestCaseSlave() stubCallInfo() These are directly referenced by my unit…
-
Unitary test dedicated Team?
Hello, whaht is the advantages/desadvantage of dedicated unitary Test Team? what is the better that developers do the unitary test or dedicated team to do it? best regards Atef
-
Highlight "Not covered conditions" not working.
Having both covered and not covered selected shows no highlight at all. Having only not covered selected shows no highlight as well. Having only covered selected shows highlight. What is going on???
-
Undefined Reference to CPP Test Functions
Hi, Im running into an issue with CPP Test, it seems that whatever i try when running unit testing i get 'Undefined Reference to cpptestTestSuiteBegin and an array of others, ive checked all the settings against the install guide and it seems to be correct. Im running Parasoft C/C++test Professional - Version:…
-
Missing "proceed" button at the bottom of the test panel. Why?
Hi, After "successfully" building a test application, running it, then loading the tlog and clog files using test configurations, the bottom of the test panel shows no "proceed" or "configure..." buttons and I can't get the report to appear. Why is that?
-
ArrayList and LinkedList in Java
Hello Everyone, I am confused to understand why does ArrayList takes more time to insert elements at the beginning than LinkedList in Java? Can anyone know the exact comparison between ArrayList and LinkedList?
-
How to stub fscanf?
I am trying to stub fscanf using stub callback but I can't get access to the variadic arguments within the callback function. Anyone knows a way to stub fscanf?
-
How to access private function from a stub callback?
I have a private function that needs to be called normally or needs to be stubbed depending on the test case. So, I either need to be able to apply the stub of the private function only to specific test case or be able to call the original private function from within the stub callback. Anyone knows how to do either?
-
Test cases are not executed
Hello everybody, I have a problem when i want to execute unit test cases on a folder of resources. I generated the test cases and tried to execute them, parasoft tells me there are 32 files in scope of the tests, which is correct, but it does not execute any testcase. I copied the generate unit tests and run unit tests…
-
Maven install errors
while installing plugin https://docs.parasoft.com/display/FINDS/Parasoft+Findings+for+Jenkins i got 2 errors. i'm not able to understand how to resolve it? [FATAL] Non-resolvable parent POM for com.parasoft:parasoft-findings:10.4.5-SNAPSHOT: Could not transfer artifact org.jenkins-ci.plugins:plugin:pom:3.49 from/to…
-
cpptestcli does not fail if a test suite has a compilation error
When using cpptestcli from the Processional version of C/C++test, I've noticed that if a test suite has a compilation error, no failures are generated by cpptestcli and the other test suites are executed. The only way to determine that a test suite didn't run is by looking at the number of tests executed. When ruining unit…
-
how can i run unit test on xillinx SDk ?
hi , i want to generate and run unit test on a target based on Zynq 7000 chip(Zybo) with xillinx SDk tools. I know that this platform is not supported by parasoft c++ test by default, but i want to know how i can do it.please hep me. thanks a lot.
-
Custom compiler with cpptestcli
Is there a way to specify the custom compilers path when using cpptestcli from version 10.4.2 of the professional edition? I've tried setting the value in the Parasoft/Configurations screen and then exporting the localsettings with Configurations selected, but no values are exported. We would prefer to not have to manually…
-
How do I create a custom static analysis rule to check that a variable is of a certain data type?
More specifically, how do I check that the variable in an if condition is of a pointer type, when the variable is a pointer dereference? I have tried "left hand side:variable" > "filter:pointer", "left hand side:variable" > "type:pointer" and "left hand side:pointer", and none of them works. This rule wizard is proving to…
-
How do I create a custom static analysis rule to count the number of pre-compilation directives?
Hi, how do I create a custom rule to count the total number of pre-compilation directives in my entire software using the Rule Wizard? I had spent an entire day attempting only to fail.
-
Bitfield not compliance with MISRA 2012
Hello, I try to wrote this struct : struct toto { _Bool TEST : 1; }; But Cpptest tell me that TEST should be a int signed or not following Rule 6.1. But Misra tell us that it is allowed to use _Bool. So what's wrong ? Thx.
-
Parasoft plugin 10.4.3 for visual studio skips all files
I was using 10.4.1 previously and had no issue with running static analysis. However, once I updated to 10.4.3, all the tests skips all the files, checking 0/0 files. Is there some incompatibility between the 2 versions or is there some necessary steps to be taken for updating from 10.4.1 to 10.4.3?
-
MISRAC2012-RULE_1_1 Compliance Pack settings for C99
Hi, There are two sets of rules for this Rule: two for C90 and two for C99. I am developing my program using C99 standard. Shall I unmark the two C90 rules and leave only C99 rules? (both 4 are marked by default) Thanks, Ritchie
-
Trouble executing with stubs
I've made a couple of stubs using the "Lesson 15: Configuring Stub Behavior in Source Code" chapter in "C++test Host-Based Unit Testing" guide. After running "Collect Stub Information" I created User Stubs for the functions I needed to stub. Trying to execute my test case give the error: function…
-
Memory test cases using Parasot C++test
I am looking for creating unit test cases for memory testing especially checkered box or galpat test. I did research in parasoft documentation however there is no such example. Did anyone got to create any tests using parasoft?
-
Adding more header files to be analysed by extension (.gen).
We are working with C/C++test Standard. A prospect was able to analyse header files (.h) by providing -module switch. (Feedback - not very intuitive to find this option in docs AND understand WHY "-module" would control the inclusions of headers into the analysis - but that is a separate discussion) . So - they have some…
-
Code composer studio unit tests fail to re-run
Hello, I have run into a problem using the embedded unit testing with c++ test. The sequence of events is; * Write some unit tests * Run TI CCS v4+ tests [C/C++ test console output] Target running... Interrupt to abort . . . * ~50 seconds after starting [C/C++ test console output] SUCCESS: Halted at correct location * All…
-
Error during parsing file (C++ static analysis)
Hello, this is my scenario: * Windows 7 platform * Parasoft C/C++ 9.6 Eclipse IDE * g++ inside Cygwin installation * Static analysis on C++ code (this code is compiled and executed on Linux platform) After run a CRules static analysis I got the following errors: size_t undefined, nullptr undefined, __int28 undefined and so…
-
Static analysis with preprocessor directives
I am running static analysis tool on C code and getting a MISRA2012 Rule 5.5b violation: The names of macros that exist prior to preprocessing should be distinct from the identifiers that exist after preprocessing (c99) [MISRAC2012-RULE_5_5-b]. It appears the cpptestcli is processing both the #ifdef clause and the #else…
-
Gmock integration
Have anyone tried to integrate Parasoft with GMock or other Mocking framework?
-
Running SA & UT to cover conditionally compiled code
I am trying to figure out the best solution for running static analysis and unit tests on all of our C++ code. There are 3 different pieces of hardware that our code runs on. We have sections of our code that are compiled out depending on name we pass in to the compiler, IE: “-DHW1”. This is the primary way our main…
-
Define Multiple Stub Callback Functions in a Single File?
Hello, I'm trying to use stubs with Dynamics Stubs Configuration enabled. All the stubs are created using "Create User Stub" option, and each are in Cpptest_Stub_(functionName).cpp files. The user manual stated that I should put Stub Callback functions in test suite files and define the stub logic there. However, instead…
-
Parasoft creation of .bdf file using bitbake.
I'm looking to setup c/c++ test to do static analysis, but my build uses bitbake to compile instead of a straight-up make command. Is there any trick to get this to create the .bdf with cpptestscan or cpptesttrace, or is there some way I can perform some level of static analysis without doing the build?
-
Error while doing static analysis with Parasoft C/C++test Professional 10.4.0 (Eclipse) in windows
Hello, Good Evening! This is my scenerio, I am doing static analysis for a make file based Project which uses arm-linux-androideabi-gcc compiler. While doing the static analysis I am getting the below mentioned error in the console window. Preparing options for MM_Version6.0 project... make -i CXX="cpptestscan.exe…
-
Programmatic Suppression
I am in need of a rule that detects ALL instances where the source code, regardless it's lines or blocks, has previously been suppressed from violation reporting ! Is any *.rule that fits above requirement already available in the download package?
-
Qt IDE with Parasoft Plugin
Hi, I use qt IDE. I want to add Parasoft to qt IDE. Is it possible for plug in Parasoft to qt ide?
-
Possible division by zero - fails to detect
Hello. I am running a static analysis checks with Parasoft C/C++ test. And I encountered the following issue: passing a zero parameter to a function which afterwards uses it to divide is not always detected/reported. For example: void some_function() { test_function(0); } void test_function(int parameter) { int var = 5 /…
-
C/C++ Test Does not start.
While starting CppTest , it hangs and does not start. Loading process stops while loading some svn or mylyn related plugins. This happens frequently. We have to uninstall and reinstall the software in order to work again.
-
Parasoft C++test and WindRiver integration
Hi, I have a one lisence for C++test. I use DS5 Eclipse IDE and Workbench 4 IDE on the same machine. I integrated with DS5 Eclipse with C++test via C++test professional eclipse plugin exe. And I want to rerun this exe it says that remove all or repair it means that this eclipse plugin just integrates with only one eclipse…
-
Is there way to report SLOCs for functions?
I was looking for a rule similar to "Report Cyclomatic Complexity [METRICS-29-5]", but for LOCs. Is there such a rule or some other way to report LOCs for the functions?