Unit and Integration Testing for C/C++
VectorCAST/C++ is an integrated software test solution that significantly reduces the time, effort, and cost associated with performing unit and integration testing of C and C++ software components, necessary for validating safety- and mission-critical embedded systems.
Traditionally, unit and integration testing is performed by developers as the code is built. As individual software components are created, test code is generated to take the place of the external interfaces of the code under test. This test code, generally called a test harness, consists of drivers to stimulate the functions of the code being tested, and stubs to take the place of dependent functions that are called by the code being tested. VectorCAST automates the creation of stubs and drivers as part of the creation of the test harness, thus freeing up the developers to focus on building quality and thorough test cases.
With VectorCAST/C++, testing can be done natively or on your specific target or target simulator. VectorCAST’s run-time support package, VectorCAST/RSP, is the add-on module that makes executing your test cases on target hardware automatic and seemless. In addition, tests may be developed in a host environment and re-executed on an embedded target to verify target and cross-compiler performance.
Easy Regression Testing
One of the most important benefits of unit test automation is the ability to rerun the tests as the source code changes to ensure that errors are not introduced. Once the test cases are generated, they can be saved in text format and easily stored in your Configuration Management tool. VectorCAST’s command line interface can be invoked from your nightly build to rerun all of the unit and integration tests so that you can check for errors that are introduced during the day. Finding issues soon after they are introduced greatly reduces debug time later in the life-cycle, thereby increasing code quality and reducing cost. Further automation of regression testing can be accomplished with VectorCAST/Manage.
VectorCAST Supports "Source Mode" or "Agile Mode"
The primary difference between using VectorCAST in "Agile Mode" versus "Source Mode" is that for "Agile Mode", no source code files are needed. When you are building a test environment, you simply point to the directory containing the header files that you want to create test cases for, and then choose one or more headers as the Units Under Test. VectorCAST will create the test environment, including empty definitions for the functions defined in the header files chosen. This results in a complete executable test harness that can be run on the host platform, or any embedded development environment. All other features of the VectorCAST tool work exactly the same way that they do in "Source Mode."