-
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…
-
IDE License Release
We noticed that when we deactivated the license from within the Eclipse IDE plugin for C/C++test, the license is not released on DTP. It appears to hold onto that session for about 10 more minutes or so, before it is released. Is that the expected behavior? If another user were to come in and that deactivated license was…
-
.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…
-
Ruining c++ from Eclipse - /usr/include/c++/5.4/string:38:28: fatal error: bits/c++config.h: No such
Hi, I created a simple C++ Hello world project under eclipse on Ubuntu 16. I run Parasoft from the GUI. Where should I update the path for parasoft ? Thanks
-
How to test multiple classes within a project?
I am testing a project that contains multiple classes. I have generated a stub file for the project to cover all calls to methods in other projects and I have generated stub files for each class where necessary to cover calls to other public class methods within the project. When testing the project, this approach does not…
-
CPPTESTCLI - Is there support for IAR project under Windows ?
Hi, IAR project under Windows , Is there support for cpptestcli command line for IAR ? Thanks
-
OutOfMemoryError : How to increase the memory for C/C++test Standard
If you see an OutOfMemoryError in the cpptest.log, you might need to increase the max heap memory for the analysis: install_dir/etc/cpptestcli.jvm In this example we suggest doubling the size of the heap.
-
How to obtain and display multiple code coverage types
C/C++test Professional supports many code coverage metrics. You can see the list of all metrics enable any of them in your Test Configuration: You can review and enabled all required coverage metrics. Be advised that adding more instrumentation affects the size and performance of the test executable. After you executed the…
-
Unable to specify cpp sln to run Parasoft test on command line
Hi all, I tried to run parasoft test on command line with the following commands but failed to do so, can anyone advice me on this? it returns >> Option -solution is not supported. Use -data instead And how do I use -data command? I try to use -data and point to the path directory (ie -data "C:\XXX"), and it is able to run…
-
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…
-
Why Disable Parasoft extension doesn't operate on VS 2017
I am trying to disable Parasoft ext on my VS 2017 , Parasoft extension on VS 2017 doesn't disable . even after VS restart.
-
Parasoft support for Oracle Java in 2019 and beyond
Beginning in January 2019, Oracle will no longer release updates to Java 8 for commercial use (see https://www.oracle.com/technetwork/es/java/javase/documentation/eol-135779.html). Some Parasoft products (SOAtest, Virtualize, C/C++test, and DTP) currently ship Oracle Java 8 as part of the installation. As of January 2019,…
-
How to customize Quality Tasks eclipse view.
Quality Tasks view can be customized to report static analysis violations and test results. By default, the Quality Tasks view is showing the hierarchy starting from file level: If you'd like to display the violations by any other criteria (e.g. Severity ), then you can customize the view by following those simple steps:…
-
TFS Agent - Running cpptestcli 10.4 - Need interactive mode
Hi, C++ project under visual studio. Running CPPTESTCLI 10.4 from command line via TFS 2018 Agent. TFS agent is running as service on WIN7 machine. The cpptestcli is causing visual studio 2017 stuck in Preparing Solution. * No issue when running scan from visual studio on the same solution. * No issues when running in…
-
CRITICAL PROBLEM WITH LATEST VISUAL STUDIO 2017 UPDATE
NOTE: The effects both dotTEST and C/C++test 10.3.x and 10.4.x The lastest Visual Studio 2017 updates (version 15.8.x - first released August 14th and the two subsequent releases in two weeks since) introduces a defect into plugin API used by the Parasoft Visual Studio plugins. This defect results in the Parasoft plugins…
-
Rules on File Server are changed to invalid
Hi, My rules are located under shared File Server. In some cases I noticed that the files extension become changed to invalid. rulename.properties.invalid Any suggestions ? Thanks
-
limited to 10 test cases to run
I am executing "Generate Unit Tests" and "Generate Stubs". Run ADS 1.2 Tests executes successfully. It appears that the number of tests generated for a couple of files is 100+. When I execute unit test cases for these 100+ test case test suite, Load Test results indicate that the 10th unit test fails. Always the 10th. Is…
-
cpptesttrace
Hi, I am running CLI command cpptesttrace and cpptestcli on a C++ project on Linux. I have a workspace that has many project dependencies. How can I set up the command line to run in one line command several projects. 1. Create bdf for all project. 2. Run cpptestcli on all bdf files for all projects in worksapce in one…
-
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…
-
How to make eclipse recognize C/C++test macros.
[Tested on: Standalone Professional Edition 10.4.0] If you would like Eclipse not to highlight the "unrecognized" C/C++test macros and get rid of those annoying highlights: Then, you would add the path [install dir]\C++test\10.4\engine\runtime\include to the project settings: They will go away:
-
Any support for Cypress?
I'm using a Cypress PSoC 4 - is there any support for this ARM-based family in C/C++test? I have it compiling under the Keil compiler (I thought that might make things easier) but I don't quite know where to start. Thanks
-
Command Line-Interface Help
Is there a way on the command line interface (CLI) to import custom parasoft rulesets (C++) into parasoft? Please advise.
-
Unable to run Jenkins C++ artifact
Hi all, I am new to Jenkins, I have a simple "hello world" C++ project I use Eclipse IDE for C/C++ Developers (on Windows8) which is generating the makefile. I can run the .exe file produced by Eclipse but I cannot run the .exe file produced by Jenkins (my Jenkins instance is on a Linux server, hosted by cloudbees). I have…
-
Test Execution error
Hi, I am using Parasoft C++ 9.5 with Eclipse Luna C++. My project have multiple build configurations, as I have multiple modules in the project, each with its own main class and functions. When I create and execute a unit test for project A, the unit test runs perfectly, flagging out failed test cases properly. However,…
-
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…
-
Importing Custom Rulesets to C++ Test using CLI Tools
I am trying to import custom rulesets into c++ test using command line interface. Please advise how to go about doing this. Thanks
-
Running CPPTESTCLI is causing visual studio 2017 stuck in Preparing Solution.
Hi, Running CPPTESTCLI 10.3.4 from command line is causing visual studio 2017 stuck in Preparing Solution. No issue when running scan from visual studio on the same solution. Any suggestions ? Thanks
-
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 +=…
-
About Test Case Editor
Hi everyone, I met a weired problem cause there's such no option like 'Test Case Editor' in my CppTest. Did anyone meet the same situation? Should I enable something? Any suggestions or commends are welcome!
-
In struct overflow detect
Hi, I have simple source: include <stdio.h> include <stdint.h> include <stdlib.h> typedef struct sss{ uint8_t ss[255]; int *k; uint8_t ss1[255]; } __sss; int main(){ struct __sss *d; int i; do { d = (struct __sss *) malloc(sizeof(struct __sss)); } while (!d); for( i = 0; i < 257;i++) { d->ss[i] = 1 + i;…
-
Unit tests don't find shared libraries at runtime (c++test v10.3)
I have a project containing unit tests that link against a shared library. The project is created using cpptestscan, with BDF files. The BDF files have correctly captured the compiler and linker options, including the one that tells the executable where to find the shared library (i.e., -Wl,-rpath,/path/to/library). With…
-
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
-
grs.* localsettings properties are no longer supported in C++test 10.3.3 and later
Starting with C++test 10.3.3, localsettings properties with the "grs" prefix are no longer supported. If they are specified in the localsettings file, then the following will be printed out in the console: Instead of using the grs.* properties, the following properties should be used instead: GRS PROPERTY UPDATED PROPERTY…
-
Code Composer Unit Testing
Hello, Just looking for a clarification. Does "CCS4xConnector.js" or cpptest (in general) support the instrumentation flow required to run a unit test on a TMS320C6x target and generate code coverage metrics? Or is it specifically for runtime analysis of Code Composer 4.x projects. Im very confused as to what level of…
-
cpptesttrace does not collect data.
My build command, under Linux, . I would like to collect build info using cpptesttrace tool. I am using eclipse CLI scriptable build from the command line. The cpptesttrace recognized the project but does not collect the data, bdf was generated but with just few arg info. Any suggestions. Thanks In Advanced, .
-
cpptesttrace does not collect data.
My build command, under Linux, . I would like to collect build info using cpptesttrace tool. I am using eclipse CLI scriptable build from the command line. The cpptesttrace recognized the project but does not collect the data, bdf was generated but with just few arg info. arg=--print-search-dirs Any suggestions. Thanks In…
-
Unit test generation issue with #ifndef preprocessor directive
I am trying to generate unit tests of a module with a "#ifndef" preprocessor directive in the code. It looks like that the code within the "#ifndef" is excluded even if the symbol is not defined and the identifier unidentified error is displayed because type definitions and variables are not parsed. Am I missing something?…
-
Header files not being analyzed/reported (Static Analysis)
How do I enable them in the analysis and report? Using C/C++ Test for VS2013. C++test 9.6.1.97
-
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…
-
cppunit test library (c++test 10.3.4)
I've been trying to reproduce the ATM example from the tutorial (eclipse variation using cygwin tools for make & g++). Although the static analysis, test & stub generation work as advertised I'm finding nothing is happing when i try to execute the 'Run Unit Tests'. The target 'test' executible does not seem to be getting…
-
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?
-
Greenhills C++11
Has anybody had any success using Parasoft 10.3 with Greenhills 2016.5.4 using the --c++11 compiler flag. For some reason even though the project file (.gpj) that is used to import the project settings has that flag it gets left out when I look at the console messages. Once c++11 code is encountered I see errors in the…
-
"Comments shall not be nested." Custom Rule in Static Analysis
Hi, I have to add this rule to perform a static analysis. The rule is the MISRA C RULE 9. "Comments shall not be nested". Can someone help me? Thanks.
-
Create custom rule during Static Analysis in Rule Wizard
Hi everyone. I've some issues to make this rule in Rule Wizard: "Only ISO 9899 standard C shall be used." I hope somebody could help me. Thank you.
-
Static analysis - custom rule for ascii characters >127
Hi, I have to create a custom rule that checks that ascii characters > 127 are not present. I have some issues doing it. Can someone help me? The rule is: "Define identifiers shall be as following: < DEFINE_NAME > = D _ < USER_NAME > Where: < USER_NAME > length is at most 12 characters and not composed by ascii characters…