Generating and editing COBOL test cases

The z/OS® Automated Unit Testing Framework (ZUnit) provides tools for setting property group options for ZUnit, creating/modifying test cases for Enterprise COBOL source programs, editing test cases, and building and running test cases.

About this task

To unit test an Enterprise COBOL program with ZUnit, do these tasks:
  1. Set property group options for generating, compiling and linking, and running a test case.
  2. Create/modify a test case program and any stub programs required for external subroutines or file I/O operations.
  3. Record or manually add data to the test entries.
  4. Build the source program, the test case, and the stub programs.
The following topics explain how to complete each of these tasks.

Example

For an example of using these tools to generate and run COBOL test cases, see the following sample programs: