The most recent content from our members.
I am trying to write unit tests for a STM32CubeIDE project. I have build the .bdf file and imported it to Parasoft C/C++Test (Standalone). I was able to generate some unit tests, however if I try to run the unit tests or collect stub information I get the following error: "C/C++test analysis errors in /project_folder 1.…
I am trying to run unit test by executing "Run IAR EW Tests" but I am getting this error Your current license is not sufficient to use non standard test execution flow Build and run tests on IAR C-SPY Simulator (license required) My current license indicates that "Runtime Error Detection", "Static analysis", "Unit test",…
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…
Hello, I am using Keil for our application development. The objective is to create unit tests for our application that will run in the ARMCM4_FP emulator. For unit testing, I created a "UnitTest" build target that creates a library, verses an executable, of the application code and any non-hardware dependent library…
Hi, I try to run cppunit format unit test in cpptest standalone ide with armcc compiler. Then I take the attached error. How can I fix it? Then I run the example which is provided from you. Your cppunit test did not work also. Your example was ATM. I took again the same error. The error attached to discussion. And I…
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…
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?…
Disclaimer: I have not used C++Test in the past. I have installed Cygwin with GCC version 6.4.0 but the latest version of the GCC toolchain that C++Test version 9.6 seems to support is 4.9.x. I haven't figured out how to install an older version of GCC to match C++test requirements. I figured that I could run static…
Hello, I have a stub function like this: stub_func(uint8_t * data); (this is an output parameter). I need to modify the parameter in a unit test. I tried to set the value in this way: uint8_t ptrData[] = {0x1, 0x0, 0x1, 0x4}; CPPTEST_ON_CALL("stub_func")->Arg("data")->Assign()->UCharRef(ptrData); but I don't see the…
Hello to everybody. I encounter a problem during the unit test of a software developed in Tornado environment with Vxworks 5.5 for a PowerPC embedded system. I import the project in Parasoft cpp test (in Eclipse IDE) with the wizard and the project compiles correctly. When I create the Unit Test I encounter a problem by…
It looks like you're new here. Sign in or register to get started.