Unit Testing from the Command Line

For native COBOL applications and procedural applications compiled as .NET COBOL, you can create, compile, run and debug unit tests from the command line.

The command line version 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 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 markdown format (compatible with GitHub), or NUnit format. You can package the NUnit reports if you have a number of related test suites, and then integrate them into your third-party testing and development applications, for example, Micro Focus Silk Central, or a Jenkins CI server.