Featured Webinar: MISRA C++ 2023: Everything You Need to Know | Watch Now

Person typing on computer

C/C++ Unit Testing

C/C++ Unit Testing Tool

Powered by Parasoft C/C++test, the most complete development testing solution for C and C++

Unit Testing on Host and Target for C and C++ Applications

With Parasoft C/C++test’s complete framework for C++ and C unit testing, developers get everything they need to create, execute, and maintain tests. Integrating with leading IDEs, Parasoft C/C++test’s unit testing features include multi-metric code coverage analysis, a powerful stubbing and C mocking framework, and automated cross-platform execution. These features are easy to use, reduce the burden of implementing the unit testing framework, and improve developers’ productivity.

How Does It Work?

With a combination of convenient graphical editors and views, Parasoft C/C++test is used by developers who want to quickly build and execute their test cases, and by testers who benefit from its graphical editors.

Unit testing modules in Parasoft C/C++test include the Test Case Explorer, Test Case Editor, Stubs View, and Coverage View, which come together to simplify unit test creation and results from the analysis. Users can quickly discover untested C/C++ code, locate unsatisfied stub call expectations, and find failed assertions. You can make corrections right away from the views in which the problem is located.

Users optimize their testing efforts by analyzing merged coverage results (from previous tests, build-by-build) that present data generated from system and unit level testing. The Coverage View can be synchronized with the Test Case Explorer to present filtered data for any arbitrary selection of test cases.

Suitable for use in large organizations and in small teams. Users can either review their work directly in the IDE or aggregate team-wide, test-driven efforts for further post-processing, reporting, and advanced analytics through Parasoft’s web interface. From there, teams can generate interactive reports with traceability between requirements, source, and test cases.


Benefit From the Parasoft Approach

Realistic Test Cases

Other tools store input values for test cases and stubs in a proprietary format as a collection of values. This is fundamentally different from the variable’s initialization in production. With Parasoft C/C++test, test cases are instead stored as source code. Values for the tested code parameters are also initialized in the source code, closer to the process of parameter initialization in the production code, making it better suited for testing safety-critical code.

Time-Saving Qualification Kits

Along with being independently certified for use in safety-critical projects by TÜV SÜD, Parasoft C/C++test also provides industry-specific qualification kits that dramatically reduce the amount of time and effort required for achieving tool qualification for standards like ISO 26262, ISO 21434, DO 178B/C, IEC 61508, and EN 50128.

Easily Switch Between Isolation and Integration

Use Parasoft C/C++test for pure isolation testing (where a tested function is entirely surrounded with stubs) and integration testing (in which tested components interact with other real software modules). You can verify the same test cases in isolation and integration mode, and compare results for any potential differences. Changing the mode of testing is a simple operation. It only requires the specification of the new stubs’ location.