-
Notifications
You must be signed in to change notification settings - Fork 29
Default Directory Structure
Home -> User Guide ->
This document was last updated on February 11, 2021.
Cobol-check makes a copy of the program under test and inserts test code into the copy. It uses Cobol copybooks to do this. You tell cobol-check where you have placed its copybooks using the config setting cobolcheck.copybook.directory.
You can organize your source code however you please. Tell cobol-check where to find your Cobol source programs and copybooks using config settings application.source.directory and application.copybook.directory.
Cobol-check expects to find all the testsuites under the same directory. Tell cobol-check what this directory is using config setting test.suite.directory.
Under the directory specified as test.suite.directory, cobol-check expects to find subdirectories named after the programs you will test. For example, if you have a program named ABCXYZ4 and you specified test.suite.directory=mytests, then cobol-check will look for testsuites pertaining to program ABCXYZ4 under directory project-root/mytests/ABCXYZ4.
your-project-root/
|
+-- config.properties <- Cobol Check configuration settings
|
+-- bin/
| |
| +-- cobolcheck <- Cobol Check executable
|
+-- scripts/
| |
| +-- [platform-specific script to run tests] <- used by Cobol Check
|
+-- your-prod-src-tree/ <- application.source.directory
| |
| +-- copy/
| | |
| | +-- *.CPY
| |
| +-- PROGRAM1.CBL
| | |
| +-- PROGRAM2.CBL
|
+-- your-test-src-tree/ <- test.suite.directory
|
+-- PROGRAM1/
| |
| +-- testsuite-1-for-program-1
| |
| +-- testsuite-2-for-program-1
|
+-- PROGRAM2/
|
+-- testsuite-1-for-program-2
|
+-- testsuite-2-for-program-2
project-root/
|
+-- config.properties <- Cobol Check configuration settings
|
+-- bin/
| |
| +-- cobolcheck <- Cobol Check executable
|
+-- scripts/
| |
| +-- [platform-specific script to run tests] <- used by Cobol Check
|
+-- src/
|
+-- main/
| |
| + cobol/ <- application.source.directory = src/main/cobol
| |
| +-- copy/ <- application.copybook.directory = src/main/cobol/copy
| | |
| | +-- CBOOK1.CPY
| | |
| | +-- CBOOK2.CPY
| |
| +-- PROGRAM1.CBL
| |
| +-- PROGRAM2.CBL
|
+--test/
|
+-- cobol/ <- test.suite.directory = src/test/cobol
|
+-- PROGRAM1/
| |
| +-- testsuite1-program1
| |
| +-- testsuite2-program1
|
+-- PROGRAM2/
|
+-- testsuite1-program2
|
+-- testsuite2-program2