-
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.
-
Static Analysis Skipped File
Hi, I run static analysis via command line and I obtain successful result. There have a no error while execution. But I noticed that the Skipped info. What is it? I did not understand the meaning of it. I attached related screen shot to discussion.
-
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…
-
Acccess Project/Workspace Location in cpptest suite
Our current test suite is littered with absolute file paths. This makes our test suites less portable. I'd like to be able to access the workspace and project locations from within our tests. How can I do this? Are there environment variables that contain this information that can be gotten through getenv()? Or are there…
-
plugin un-installation procedure
What is the recommended (vetted) procedure to uninstall a <parasoft_cpptest_desktop_10.x.y_win32_x86_64_eclipse.exe> plugin? I already tried running a formal way from Control Panel > Uninstall a program > double click ... No requests in regards to "Uninstall, Change, or Repair" option, the cycle just removed (most of) the…
-
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.
-
Maven NAR project Parasoft C++Test Integration
We noticed that Jtest and Maven can easly integrated. However we did not find Maven C++Test plugin for native project in Maven. How can we integrate Parasoft C++Test with Maven NAR?
-
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…
-
Static analysis violation
Hi I run the recommeded rules in c++test. I take a several violation in code. I did not interpret one violation which says 'Value 42 is out of acceptable range' lower than 30'. What does the meaning of it? I did not understand violation. The sreen shot of violation is attached to question.
-
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…
-
C/C++ Unit Test runtime error (Keil, ARM, CMSIS)
Hello, we used the QuickStart MDK-ARM unit test example and applied it to our project. We are using Keil uVision 5.26.2 with Parasoft C/C++ Test 10.4.1. The project builds in Keil and executes on the target without any issues. The Parasoft project (Keil uVision import using Batch File output) is setup for Static Analysis…
-
auto-generate test for an individual unit within a module (C/C++ 10.4.1)
Hello, I am able to auto-generate test cases at a module level (c-file) by using the Generate Unit Tests (Generation, say 3 test cases per function). This generates test cases for all units within the module. Is there a way to isolate and generate test case of a single unit (function) within a module? I'm using C/C++…
-
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
-
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
-
Merging test coverage status across tests in different projects
We have source files in a common library project that contain functions called by source code in other projects but we only have Integration Tests for Project A and Project B: Project CommonLib – contains a function common(int c) Project A – contains a function a() that calls common(0) Project B – contains a function b()…
-
AUTOSAR C++14 release version?
Which AUTOSAR C++14 release version does the tool support?
-
Default host-based unit testing with DS5
Hi, I have no embbedded support feature that is my license does not contain this feature. Therefore I want to run my unit test via "Default host-based unit testing" option which is shown in the attacehed DSC_0103 image. Firstly I create autogenerated unit tests. then I want to run them. When test file is excluded from the…
-
Line suppression in the source code
When we want to suppress a violation in the source code, is it okay to add a comment '// parasoft-suppress...' that is "not" in continuation to the line we want to suppress? Can we insert the comment on top or split it in multiple lines, for the suppression to work? The reason I ask this is because we use a tool that…
-
Should we check for a return statement for void function? Is this critical and affects the quality?
Similar to AUTOSAR rule A8_4_2-a (All exit paths from a function with non-void return type shall have an explicit return statement with an expression), should we also check for a return statement for void function? Is this critical and affects the quality?
-
DS-5 Unit Test Execution
I am working with Arm DS-5. I use Eclipse IDE for Arm DS-5 I use Arm C Compiler 5 and I use cortex A9. I easily generate unit test via generate unit test feature of Parasoft. I can reach generated test from Test case explorer. But I can not run these test. When I run the tests, the console part of IDE does not affect.…
-
Adding new Rule via RuleWizard
Briefly, I want to learn RuleWizard to create my rules via RuleWizard for Static Analysis in C/C++Test. But I have an issue about it. For example, I want to check a case which is given in below. void Trial(INT32U x){ //violation ( bracket should be put in new line not after the function) ... } void Trial(INT32U x)…
-
Keil UVision Parasoft Plugin
I work with Keil uVision v5 ide and I want to plugin yhis ide to parasoft. But I think this ide is not eclipse based. Therefore when I run the installation about parasoft c++test eclipse plugin setup file and proccess ended parasoft view does not appear on toolbar of keil uvision ide. How can I plug Parasoft with Keil…
-
Disable Static Analysis violation to 1000
Hi , Today when we scan to Parasoft with MISRA C 2012 Rules , we have a limit of 1000 Violations. How can remove the limit ? Thanks :) Chen
-
Configuring the Jenkins Global properties through powershell
I want to run automated selenium tests on different browsers and would like to pass the browser through as a parameter in my PowerShell script that triggers the tests to run. The browser is currently determined by the value of my 'Browser' variable in the global properties in Jenkins. Is there a way to assign the value…
-
Is it possible to ignore compilation flags that block (try-catch)
Hi, C++Test 10.4.1. IAR compiler. Is it possible to ignore compilation flag that ignores blocking try-catch flag. Is it possible to writes rules that ignore such blocking try-catch flag. Thanks
-
Can Flow Analysis be performed across multiple Eclipse projects?
The project code (C/C++) is structured into multiple projects. To create the program, 1 very small project is the executable and that links to a number static libraries. The libraries then reference each other. The Flow Analysis will flag many "function is not used in the testing scope" errors as, apparently, the scope…
-
Using Parasoft gcc7
Hi, I'm trying to understand if I'm able to use Parasoft C/C++test. My understanding right now is that I can not use Parasoft with my gcc7 C++ source because Eclipse currently does not support gcc7? Any information is much appreciated. Thanks, Steve
-
Misra rule violation shows up when not running static test on full project
Hi, when running static analysis with misra rules we get a lot of extra rule violations when running the analysis on a single module (single folder). The rule 20.9 "macro might not be defined" accounts for all of the extra violations. When the analysis is run on the full project, these do not show up. The project was…
-
Different result outputs while running Unit Test on full project
When we run a Unit Test by selecting our project in Eclipse it generate different result for each run cycle. e.g. sometime ‘Function A’ is reported to be failed and sometimes ‘Function B’. We have fairly large codebase and it's all C/C++ code for ARM platform.
-
Stubbing functions which are not declared in header file
Is there any way to stub a class member function which has been defined in CPP files completely. The code is very old and we cannot modify the structure of code for the sake of unit testing.
-
Test-Case Execution
Hi @Bogdan Czwartkowski @Mirek , Currently i am working on the ADSP_sc584 ez board. i am able to generate the test cases .but when i am running the test-cases i am getting error which i have attached in this discussion. i've created custom compiler and my base compiler is : Analog Device C/C++ compiler 7.0 for SHARC .…
-
Test case generation
Hello @Mirek , i am facing issue to generate the test case which is integrate with the SHARC Processor ADSP-sc 584 EZ board. not able to generate the test cases even i had created the custom compiler also, i am getting this error which is attached in this Discussion. please help me out and give me some solution as soon as…
-
Code coverage on static library
Hello, I'm working with Parasoft C++test 9.5. I have two projects: -one to build a static library -one to build a main program to be linked with the static library I succeeded to do code coverage on the main program only, but I don't know how to do code coverage on the static library as well... How should the static…
-
C++
I want to learn c++ language but I do not understand from where will I start from?
-
Auto Test case Generation
Hi @Mirek @Bogdan Czwartkowski I have a general query for auto test case generation. On which basis, C++ test tool generate the test case . How to identify from where it is taking the input for test case generation .
-
IAR Embedded Workbench Support - Details
Hi, Parasoft C/C++test Professional 10.4.1 . Regarding IAR support. I understand the support in compilers , but how it supports in environment , according to: https://docs.parasoft.com/display/CPPDESKE1041/About+EWARM Can the product support IAR IDE ? Thanks
-
Modify value of output parameter in Test Case Editor ??
Hello, I have a stubbed function like this : int StubFunc(short * param) (Which is supposed to store a value at the address pointed to by param, so, an output parameter) In order to correctly cover my code, I need to be able to modify the value of param when a stub call is made like the original function would do. However…
-
Debugging UT with GDB unable to find libcpptestruntime64.so
After following the Parasoft guide to debugging a test with GDB on 64-bit Ubuntu 18 (https://docs.parasoft.com/display/CPPDESKE1040/Exercise+15+-+Debugging+Unit+Tests+With+GDB), I'm having an issue where both GDB and Eclipse's built in debugging are not launching properly. In both situations it seems that there's an issue…
-
Unable to generate stubs
Hello, I've integrated the Parasoft plugin into Atollic TrueSTUDIO - an eclipse-based IDE for developing ARM cortex devices. I am attempting to generate unit tests and stubs as a file scope configuration, however it results in a lot of setup problems: Test execution: error preparing instrumentation / symbols data for…
-
About Stub function
Hi everyone, I am a newbie here and I surfed lots of articles in 'help contents', but still got little sense about stub functions. Suppose that I have a source data library and use it in a Test Case writen by my own. And I want to know more information(for instance, the variable values calculated in one section inside the…
-
Is there possibility to create Cobertura report ?
Hi, Is there possibility to create Cobertura report ? to the static analysis reports ? Thanks
-
Violation Report
Hello every one, i need one help while generating the report for static analysis. i ran the static analysis with MISRA C 2012 safety standard compliance rule :-it reported 2025 violation. while i have imported the .BDF file of same source code then i ran the static analysis then it reported 2030 violation. i checked both…