The VectorCAST tools have greatly reduced the time it takes to fully test our code. VectorCAST/Manage allows us to...Read full story »
- Requirements Specification:
- System Design:
- Unit Testing:
- Integration Testing:
- System Testing:
VectorCAST/Ada is a dynamic software test solution that automates Ada unit and integration testing, which is necessary for validating safety- and mission-critical embedded systems.
- Moves testing from a manual process to engineering rigor
- Can be used on new or legacy applications
- Makes developer testing a streamlined and repeatable technology
- Proven reduction in cost by automating the creation of frameworks to isolate newly developed code
- Enables attention to quality without derailing development time
Ada Unit and Integration Testing
Traditionally, Ada 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/Ada, unit 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 for Ada is the ability to rerun the tests as the source code changes to ensure that errors aren’t 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 lifecycle,
VectorCAST/Ada features include:
- Complete test-harness construction for Ada unit and integration testing – no writing of test code
- Stub and driver code built automatically
- Test execution from GUI or scripts
- Code-coverage analysis specific to military and avionic requirements
- Integrated with IBM® Rational® Rhapsody®, AdaCore GNAT, Green Hills® AdaMULTI™, Atego™ ObjectAda®, DDC-I™ SCORE®, IBM® Rational® DOORS® 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
- Leverage existing tests to automate regression testing
How to Automate Ada Embedded Software Testing with VectorCAST/Ada
VectorCAST/Ada 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, utilities 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 – main program that
- 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/Ada 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 DO-178B.
Discover the benefits of VectorCAST with a 30-Day Free Trial
See how VectorCAST/Ada integration and unit testing tools improve performance in your exact testing environment, by registering today for a 30-day, fully-functional version.
You are also invited to arrange a demo specific to your project needs.