Skip to content

Commit 71c0db9

Browse files
How Cobol Check accomplish unit testing?
Signed-off-by: Ashis Kumar Naik <[email protected]>
1 parent 414aea1 commit 71c0db9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
*~
33
*.pdf
4+
.idea

COBOL Programming Course #4 - Testing/COBOL Programming Course #4 - Testing.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,8 @@ In this chapter, we discuss the concept of unit testing in cobol-programming lan
339339
- **Introduction to Cobol Check**
340340

341341
- **What is Cobol Check ?**
342+
- **Where Can you run Cobol Check ?**
343+
- **How does Cobol Check accomplish unit testing?**
342344

343345

344346
## Introduction to Cobol Check
@@ -350,6 +352,13 @@ Cobol Check serves as a unit testing framework specifically designed to assist C
350352

351353
### Where Can you run Cobol Check ?
352354

353-
COBOL Check strives to facilitate the maintenance and modernization of legacy COBOL applications on IBM zSeries systems. It achieves this by providing developers with the flexibility to work on either the mainframe platform or off-platform environments such as Windows, Unix, Linux, or OS X instances disconnected from the mainframe. By harnessing the advantages of fine-grained "micro test" development at the level of individual Cobol paragraphs.
355+
Cobol Check strives to facilitate the maintenance and modernization of legacy COBOL applications on IBM zSeries systems. It achieves this by providing developers with the flexibility to work on either the mainframe platform or off-platform environments such as Windows, Unix, Linux, or OS X instances disconnected from the mainframe. By harnessing the advantages of fine-grained "micro test" development at the level of individual Cobol paragraphs.
354356

355357
In this chapter, our focus will be on utilizing COBOL Check with Enterprise COBOL on a mainframe environment.
358+
359+
## How does Cobol Check accomplish unit testing?
360+
361+
With cobol-check we can exercise individual cobol-paragraphs in isolation from the rest of the program and without any access to any external resources such as datasets or CICS facilities. Cobol is not designed to do this kind of thing at runtime then how does cobol check accomplish it?
362+
Developers write test cases using the DSL (domain specific language). The DSL is designed to look similar to cobol-source code so it could be intuitive for cobol-programmers.
363+
Cobol-check interprets these test cases and converts them into standard cobol statements and merges them with the source of the program under the test. This copy of the program under test which contains test code is then compiled and executed.
364+
The test code does not run the entire procedure division; instead it only calls the specific paragraphs that are mentioned in the test case.

0 commit comments

Comments
 (0)