Compiling Tests

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

Native COBOL code

For native COBOL tests, the program that contains your test case(s) can be compiled to one of the following 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 .NET COBOL code

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

Windows:

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