Automation for C and C++ Unit Testing
VectorCAST/C++ is a highly automated unit and integration test solution used by embedded developers to validate safety and business critical embedded systems. This dynamic test solution is widely used in the avionics, medical device, automotive, industrial controls, railway, and financial industries.
Advantages
- Can be used on new or legacy applications
- Ease of use enables non-regulated industries to realize benefits of C and C++ unit testing
- Makes developer testing a streamlined and repeatable technology
- Moves testing from a manual process to engineering rigor
- Proven reduction in cost by automating framework creation to isolate newly developed code

Highlights of VectorCAST/C++
The key features of VectorCAST for C and C++ unit and integration testing include:
- Complete test-harness construction for C and C++ unit and integration testing – no writing of test code
- Stub and driver code built automatically
- Test execution from GUI or scripts
- Code-coverage analysis with optimization for embedded systems
- Integrations with The MathWorks® Simulink®, Green Hills® INTEGRITY®, IBM® Rational® DOORS® IBM® Rational® Rhapsody®, PC-Lint and other tools
- On-target and simulator test execution
- Code-complexity analysis highlights high risk code
- Automatic test case generation based on decision paths
- Test execution playback to assist in debugging Integrated with leading static analysis tools
How it Works
How to Automate Embedded C and C++ Unit and Integration Testing with VectorCAST/C++
VectorCAST/C++ parses your source code and invokes code generators to automatically create the test code (stubs and drivers) required to construct a complete, executable test harness.
Once the test harness is constructed, VectorCAST/C++ can be used to build and execute test cases, show code covered, and report static measurements. Test data is maintained separately from the test harness, enabling easy automatic regression testing.
Components of the VectorCAST executable harness
- test driver
- source file(s) under test
- complete stubs for dependent functions
- source files for any dependent units that are not stubbed
The test harness is data-driven, meaning the harness reads test data during execution. This approach eliminates the need to compile and link a new executable harness for each new test.
VectorCAST/C++ also generates code coverage metrics which indicate which areas of the code that you are testing still have not been tested. The easy-to-read code coverage viewer indicates down to the line of code where there is testing left to be done and can support the different levels of coverage specified in various industry standards like: IEC 62304, ISO 26262, DO-178B/C and IEC 61508.
Compilers
C and C++ Supported Compilers
For C and C++, VectorCAST is user-configurable for the compiler that you are using. If the compiler you are using is not on the list of supported C/C++ compilers, you simply need to configure the compile and link commands for your compiler.
Downloads
-
2019-11-26 Product DescriptionVectorCAST - Software Test Automation for High Quality Software
-
2018-09-10 Product DescriptionFact Sheet VectorCAST/C++
-
2018-09-10 Product DescriptionFact Sheet VectorCAST/RSP
-
2018-09-10 Product DescriptionFact Sheet VectorCAST/Coupling
-
2018-09-10 Product DescriptionFact Sheet VectorCAST/Lint
-
2018-09-10 Product DescriptionFact Sheet VectorCAST/CBA
-
2019-10-03 WhitepaperFollowing the ISO 26262-6:2018 Guidelines with VectorCAST
-
2018-09-10 WhitepaperTest Like Google With VectorCAST
-
2018-09-10 WhitepaperHow to Evaluate Embedded Software Test Tools
-
2018-09-10 WhitepaperUsing Code Coverage to Improve the Reliability of Embedded Software
-
2018-09-10 WhitepaperQuantifying The Cost of Fixing vs Preventing Bugs
-
2018-09-10 WhitepaperHow to Develop High Quality Software
-
2018-09-10 WhitepaperUsing VectorCAST to Satisfy FDA Software Testing Requirements
-
2018-09-10 WhitepaperUsing VectorCAST for DO-178B/C Software Verification
-
2018-09-10 WhitepaperUsing VectorCAST/C++ with Test Driven Development
-
2018-09-10 WhitepaperUsing User-Code in VectorCAST
- 2019-11-26 VectorCAST: Coverage Analysis as the Most Important Metric for...
- 2019-11-26 VectorCAST: l'analisi della copertura come metrica più importante...
- 2019-10-29 VectorCAST: How to Avoid Safety Defects and Security...
- 2019-10-24 VectorCAST: Software Testing 101 Testing Fundamentals for High...
- 2019-08-22 VectorCAST: Automating Data and Control Coupling
- 2019-07-16 Die Zertifizierung von reinen Softwareprodukten der Funktionalen...
- 2019-07-09 Meeting the Challenges of Large and Complex Multi-Language...
- 2019-06-20 VectorCAST: Using VectorCAST for ISO 26262-6:2018 Testing...
- 2019-05-21 Software Verification and Validation for ISO 26262 with...
- 2019-05-21 Verifica e convalida del software per ISO 26262 con VectorCAST
News & Events
Services

VectorCAST Services
The VectorCAST Services group helps your organization implement industry focused, best practice-based methodologies to improve software quality and productivity. What sets the VectorCAST Services group apart from other professional services groups is the expertise in complex testing environments and the focus on mentoring clients for self-sufficiency while helping them establish repeatable software development and testing processes.
Training

VectorCAST Workshops
Our workshops offer you many opportunities to expand or deepen your knowledge about VectorCAST.
Gain a basic understanding of Unit Testing and Code Coverage concepts and how the VectorCAST test automation platform can be used to implement those concepts.