-
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
-
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?
-
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
-
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…
-
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.
-
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…
-
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…
-
.bdf file creation.
how to create bdf file in parasoft c/c++ test 10.4. i am not able to understand also i refer the user guide. so anyone please help me on the same with example. i had run the following command but i am getting error. [princekumar@localhost src]$ cpptesttrace…
-
Stubbing out Internal Functions inside Static Library
My code under test calls another function, I'll call function A. Function A lives in a linked in static library called SL. Function A inside SL calls Function B directly which also lives in SL. I want to stub the call to function B. In this configuration, is this possible? In more general terms, can I stub an internal…
-
Stubbing Fails to Find Functions
I ran the "Collect Stub Information" Built-In test configuration on a project. Inside this project, there are a series of both static and non-static functions. However, when I run that test configuration, it fails to find any non-static symbols (functions). What, if anything in terms of code or project configurations,…
-
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…