-
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
-
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.…
-
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…
-
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???
-
Limiting scope of test reports to subset of files
We have a project that requires unit testing of only a subset of files in the source tree. I know how to pass a specific list of resources to cpptestcli using the -resource parameter. There is also a method to filter files in the test configuration. What I'd like to do is keep track of coverage results of only the files…
-
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?
-
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?
-
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…
-
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 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…
-
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…
-
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…
-
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.
-
"Scope Settings" Menu inside Parasoft Project Properties
I looked at your documentation to try to get more information into what these options in this menu do. I found a lot on how to use it, and what each of the options are for, but it did not explain what the impact would be on utilizing these settings? For example, I know that it doesn't run code coverage or static analysis,…
-
Cannot find function
When creating a test case for a function (without processing), the C++ test tool cannot find the target of the corresponding function in the Drop-down menu.
-
C++test latest Coverage Collecting Features
C++test has introduced a new functionality that will allow users to combine all coverage findings from their Static Libraries and/or previous runs into one report. We have introduced a new wrapper executable used to collect coverage, cpptestcc, and introduced a new fully customizable Runtime Coverage Library. I have put…
-
Working with Wind River Workbench in command line
Hi, We use. Parasoft with jenkins therefore we work in command line. For working with Wind River Workbench project how should we proceed?
-
Keil uVision Static Analysis Problem
I worked with Keil uVision. For analysing Keil uVision code I followed instruction of the https://docs.parasoft.com/display/CPPDESKE1041/Keil+MDK-ARM+Support document. I create bdf file and I import my code and bdf file to standalone C++test ide. Then I tried to do static analysis for this code. In the parasoft document it…
-
Stubs for variadic functions
Recently I had to stub out a Linux ioctl function for testing. I found that the stub doesn't pass the variadic arguments to the callback function. In order to pass the arguments I made a quick hack, and hijacked the __return pointer from within the auto-generated stub code to be able to see the arguments as shown below. Is…
-
-vs switch has to be specified with Visual Studio version problem
We prepare a .bat file and we call this bat file from jenkins. This bat file commands works in Visual Studio command prompt. When I execute these commands individually There have no problem but when I call bat file from normal command prompt We take the "-vs switch has to be specified with Visual Studio version " problem.…
-
Parasoft Warnings Tab
I try to work Parasoft with Jenkins. They are working well each other. But when I call parasoft throughout jenkins, the static analysis and then unit test execution is finished, the Parasoft Warnings Tab in Jenkins interface does not appear. Why this case occur. In the begining of the project creation I select freestyle…
-
cpptestcli error:unable to find parasoft test installation
When I want to work command line and try to run static analysis in command line take cpptestcli error:unable to find parasoft test installation error. Related image is added to question.
-
Create bdf file with Maven
Hi, I can run mvn clean install in command line. Then Itry to generate bdf file for this maven project.But I get an error.The error attached to discussion.Why this error obtain?
-
Parasoft Example Eclipse Project Unit Testing Gcc Problem
I am working with Parasoft ATM eclipse example. First of all I create bdf file for this ATM project. And I open this project in C++Test ide with using bdf file option. I successfully run static analysis and optain results. Then I create aoutogenerated tests via "Generate unit tests" option. Then I run these test. I obtain…
-
Parasoft Findings Plugin in Jenkins integration Error
Hi I had Installed Parasoft C/C++ Test and 'Parasoft Findings Plugin' in our Jenkins server(Ubuntu 16.04.6 LTS). I'd like to display the C/C++ test report that built in Jenkins. I created a new item and filled out the following in the build and post-build action area: When building the item, the following log was printed.…
-
Generate a Report from Persistent Violations for Static Analysis
When I run Static Analysis over my code base using Eclipse, any violations that pop up will be listed under Quality Tasks. Under the Configuration Running tab (or view), at the conclusion of the run, it states how many quality tasks were found, gives me the progress bar, and then at the bottom allows me to generate a…
-
Keil uVision Static Analysis Quick Start
In this post, I will go over how to get started with using C++test static analysis on Keil uVision projects. In this example, I will be using the C++test example MDK-ARM Sensor project. This can be found within ${CPPTEST_HOME}/Examples/Embedded/MDK-ARM/Sensor. In this post I will use the following: C++test 10.4.2…
-
How to Save Test Suite
We're trying to save a Linux test suite (using git) so we can share it among developers. The existing suite contains several hidden files (.parasoft, .cproject, .project, .metadata) that contain absolute paths to the original suite locations, which breaks badly when we try to reuse the project elsewhere. How can we save…
-
Test execution: error linking test executable for Test unit for selected sources. Error
What is this error, what is the resolution for it? the error "Test execution: error linking test executable for Test unit for selected sources." comes while running the unit tests.
-
Question about "translation unit" in RuleWizard
Hi. We need to use RuleWizard to creat a new rule. The thing we want to do is getting all functions in two or more translation units. Can we do that? If so, how? Thank you for reply.
-
Reset RunId inside Dynamic Stubs
I am running Unit Testing in the following environment: Eclipse: Kepler Parasoft: 10.3.4 I am using dynamic stubs to do unit testing. I am calling the same function multiple times inside a single test case, and that function calls additional sub-functions that are stubbed. I know that I can set the Run Ids to control the…
-
Report Count and GUI Count Inconsistent
I am running Static Analysis across an entire workspace worth of projects with some key characteristics: Eclipse: Kepler Parasoft: 10.3.4 Number of Projects: ~160 Number of Files: ~ 1000 .c/.cpp and ~1000.h Configuration Properties: 1. Limit is not set on number of violations per rule 2. Check box for "static/Flow Analysis…
-
Parasoft Static Analysis Jobs are Inconsistent
Hello, I am running Static Analysis across an entire workspace worth of projects with some key characteristics: Eclipse: Kepler Parasoft: 10.3.4 Number of Projects: ~160 Number of Files: ~ 1000 .c/.cpp and ~1000.h Configuration Properties: 1. Limit is not set on number of violations per rule 2. Check box for "static/Flow…
-
Inconsistencies in Counting Inside Static Analysis Report
Hello, I am running Static Analysis across an entire workspace worth of projects with some key characteristics: Eclipse: Kepler Parasoft: 10.3.4 Number of Projects: ~160 Number of Files: ~ 1000 .c/.cpp and ~1000.h Configuration Properties: 1. Limit is not set on number of violations per rule 2. Check box for "static/Flow…
-
Error reading test log for Test unit for selected sources.
I build my unit test from eclipse base ide ds5 (Build test executable - generic embedded system ) then ı take ' test log for Test unit for selected sources' error. How can I Solve this problem? Could you give me quickly answer? Thanks