Types of Unit Test

The following types of unit test are available when you initiate the Create Unit Test wizard from a source program (right-click the source code and select Create Unit Test).

Program Test
A program test consists of the same structure as a basic test program, but the wizard used to create the program test also populates it with the necessary details to call the source program directly through one of its entry points; test assertions can then be made upon the results of running that source code.
Program Test (Data Driven)
This type of test is set up like to a program test, but contains some additional configuration in order to run tests against a data (.csv) file. The code under test is run repeatedly against each row of data in the data source.
Self-Contained Unit Test
A self-contained test is also capable of testing code from its source, but utilizes the MFUPP preprocessor to actually inject the test code into the source program when run under the Micro Focus Unit Testing Framework. This type of test enables you to code tests that work on a more granular level, in that they can test individual sections and paragraphs.
If your source application is built to executable, this is the only type of test that supports that type of output.

If you create a test program manually (from a unit test library project, add a new test program), a unit test similar to a program test is created, but does not include the necessary coding to call into any source code.