z/OS Automated Unit Testing Framework (zUnit) overview

Contents

z/OS Automated Unit Testing Framework (zUnit) overview

The zUnit feature of Developer for z Systems® provides a code-driven unit testing framework for Enterprise COBOL and PL/I. zUnit provides an automated solution for running and verifying Enterprise COBOL and PL/I unit test cases that are written by using the zUnit framework.

Overview

For a description of the concepts and terminology for zUnit, see z/OS Automated Unit Testing Framework (zUnit).

Getting started

zUnit provides several tools for creating and running test cases. The following procedures outline the fastest path to running COBOL and PL/I test cases with zUnit. For more information about each step in this process, click the link. For more information about other zUnit processes, such as running a test from JCL or TSO, or generating test results in alternative formats, see the other topics in the zUnit information set.

COBOL

  1. Set property group options for a test case. The property group defines the compiler and link options that zUnit requires to run a test case and defines the test runner configuration and result files. You must define a property group with the options required by zUnit and associate the property group with the programs that you want to test.
  2. Generate a test case program. For Enterprise COBOL source files, the zUnit feature can analyze a source program and generate a test case with test data. The test case generation tools simplify the process of creating test cases, incorporating test data into a unit test, and building and running a test case.
  3. Build and run the test case. zUnit provides menu items for running test cases. These menu items are available in the z/OS Projects and Remote Systems views. After you run a test case, zUnit opens the test results in the test result viewer.

PL/I

  1. Set property group options for a test case. The property group defines the compiler and link options that zUnit requires to run a test case and defines the test runner configuration and result files. You must define a property group with the options required by zUnit and associate the property group with the programs that you want to test.
  2. Generate a test case program. For Enterprise PL/I source files, the zUnit feature can analyze a source program and generate a test case with test data. The test case generation tools simplify the process of creating test cases, incorporating test data into a unit test, and building and running a test case.
  3. Build and run the test case. zUnit provides menu items for running test cases. These menu items are available in the z/OS Projects and Remote Systems views. After you run a test case, zUnit opens the test results in the test result viewer.

Samples

Resources for learning available on the web


Feedback