Compiling Tests

Restriction: Compiled fixture files with the base name mfunit will not run within the Micro Focus Unit Testing Framework.

The COBOL program that contains your test case(s) must be compiled to one of the executable formats: .dll .int, or .gnt.

cbllink -D mytestfixture.cbl
cobol mytestfixture.cbl gnt"";

Once it is compiled, you must run the resulting file from the command line.

Procedural managed code

You must compile the procedural managed COBOL programs as .dll using the the ILGEN(sub) directive. For example:

Windows:

cobol myunittest.cbl ilgen(sub);
mfurunil myunittest.dll