Previous Topic Next topic Print topic


The Micro Focus Unit Testing Framework

Note: This is a technology preview feature only. It is being made available to allow you to test and provide feedback on this new capability, but it is not intended for production use and is not supported as such. Furthermore, Micro Focus does not guarantee that this feature will be delivered at a GA level and if it is, then the functionality provided might differ considerably from this technology preview. During the preview, you are encouraged to share your feedback and experiences via the Micro Focus community forum - http://community.microfocus.com/microfocus/).

The Micro Focus Unit Testing Framework is an xUnit-style testing framework, available from theĀ Enterprise Developer command line or shell prompt, for procedural COBOL applications.

It includes much of the architecture you would expect of an xUnit framework. The test runner is a 32- or 64-bit executable that runs a test suite, which is a COBOL program compiled to .dll (Windows) or .so (UNIX) that includes the test case logic, and optionally, any supporting code that controls the environment the test is run within.

If your test run encounters failures, you can choose to invoke a just-in-time debugger, create a core dump file, or simply continue the test run.

The results of a test run are available in a number of formats. By default, results are displayed to screen and to a .txt file, but you can use additional parameters to produce reports in JUnit format. You can package the JUnit reports if you have a number of related test suites, and then integrate them into your third-party testing and development applications, for example, a Jenkins CI server.

Previous Topic Next topic Print topic