Cobol Check provides fine-grained unit testing/checking for Cobol at the same conceptual level of detail as unit testing frameworks for other languages, such as Python, Ruby, C#, and Java.
- Fine-grained assertions
- Stubs and mocks
- Mock perform verification
- Test result report in JUnit format and HTML
- And much more
A big thank you to Vicom Infinity for kindly providing a test z/OS environment for the project!
Another thank you, goes towards Bankdata, for major contributions to the project.
As of March 2022 we could use help with:
- 1 or 2 additional team members - interns OK.
- review of localized messages by native speakers and creation of additional localized message files.
Version 0.2.14 pre-release is available!
- Find distributions here: Cobol Check Ditributions.
- Find general release information in the changelog.
- Find more information about supported functionality on the wiki.
If you want source code, you can clone the repository or download a compressed archive(currently outdated) from here.
Cobol Check is also a Visual Studio Code extension. Download it in the Extensions tab in VS Code or take a look here.
The industry is experiencing a resurgence in interest in Cobol, both to support existing applications and to take advantage of the continuing evolution of the zSeries platform. Commercial unit testing tools for Cobol are able to exercise code at the level of a whole load module, but cannot exercise individual Cobol paragraphs in isolation. That limitation means we cannot achieve the same degree of granularity in microtests as we can when working in other languages, such as Java, Kotlin, C#, Python, or Ruby.
Given that capability, we might anticipate some of the same effects on the design of Cobol code as we see in the design of code in other languages, when fine-grained microtesting is used. These include factors like modularity, smaller source units, closer alignment with basic software design guidelines such as separation of concerns and single responsibility, and so forth.
As much of the work in this space will involve support for existing code bases, we might also anticipate that incremental refactoring will become easier once we have a safety net of fine-grained examples in place. We can apply the same techniques we use to improve the design of existing code in other languages.
Please see the wiki for more information.
We want to enable Cobol developers to write and run fine-grained unit checks on as many platforms as are feasible. Please see the list of certified user platform on the wiki.
- The original proof-of-concept project: https://github.com/neopragma/cobol-unit-test
- A fork with enhancements to work on zOS, and bug fixes: https://github.com/Rune-Christensen/cobol-unit-test
This project is part of the Open Mainframe Project.
To report a problem or request a feature, please open an issue.