Tutorials | VectorCAST
![]() |
Create a Build Settings RepositoryWhen building a complex test environment, VectorCAST provides an easy way to use your current project build output to capture the locations of units in the environment, the locations of library include directories, and the arguments needed to compile specific units. These build settings are captured by means of a step-by-step wizard and stored in a repository. This document will show you how it can by done using a Visual Studio IDE register & download |
![]() |
Generate Code Coverage MetricsVectorCAST/Cover is a code-coverage analysis tool. It integrates with your application build process, inserting instrumentation into the source code. This allows VectorCAST to capture and report the code coverage as your application runs on its target platform in real time. This document outlines an example of the procedure for integrating VectorCAST/Cover with your application under test. It uses Visual Studio 2005 as an example. register & download |
![]() |
Run a Custom Startup RoutineDefining vcast_main tells VectorCAST to expect a separate main function, in which vcast_main shall be called to start the test run. This main function then can be used to add any complex startup routine required to place a target board in a state suitable for running the tests [e.g. initializing stack or heap]. This document demonstrates an example of using this facility in VectorCAST to run startup routines. register & download |
![]() |
Test Functions with Void PointersAs an advanced Dynamic Testing solution, VectorCAST has built-in options that allow the developer or tester to create meaningful global variable types, which can then be used by VectorCAST to assign as test data for void pointer variables. This document demonstrates how to do so. register & download |
![]() |
Configure for Testing on IAR-SimulatorThis document outlines some of the basic custom steps that should be followed, for setting up a VectorCAST/C++ environment to run on an IAR ARM Cortex based simulator. register & download |
![]() |
Configure Harness IO (stdin-out)This document demonstrate a method for customizing file I/O uses the test harness standard input (stdin) and standard output (stdout) for the input and output data. VectorCAST will concatenate all input into a single file before the test is run (VCAST_STDIN.DAT). After the test is run, VectorCAST expects all of the output data to exist in the file: VCAST_STDOUT.DAT. register & download |
![]() |
How To - Configure Harness IO (stdout)In this document, we suppose that the target only has stdout capabilities. In this situation, this document will how you how can VectorCAST be configured, so the tool will embed test cases within the test harness. The tool will embed that information as a C-like structure so as to minimize the size of the harness. register & download |