Rocket® Testing Framework extension
The Rocket Unit Testing Framework extension provides support for COBOL
developers creating tests.
Features includes:
The extension provides functionality for:
- Testing Assistant
- Recommends changes to your source to make the programs easier to test
- Test plan creation
- Create a test plan from a program interface (linkage) or a section or paragraph
- Test data generation
- Create test data for variables used in a
- programs interface (linkage)
- or a section or paragraph
- Test generation
- Creates Rocket Unit Tests (MFUNIT) for a program or a section or paragraph
The copilot chat participant panel provides the following commands:
| Command |
Description |
| /help |
Show help information and access to the Getting Started Guide |
| /setupTests |
Prepares the current workspace for unit testing |
| /test |
Create a basic unit test for a callable program or from a paragraph or section |
| /tests |
Create unit tests for a callable program or from a paragraph or section |
| /testPlan |
Create a unit test plan for the selected code |
| /testData |
Create unit test data for the selected code |
All of the commands can take the name of the paragraph or section.
If no argument are given, you will be prompted for more information.
The Getting Started Guide, accessed through the /help command gives you
further information, tips and examples.
Training
Training is available -> Courses List.
Requirements
If you are using a version that is earlier than 11.0, then it is recommended
that you setrocketUnitTesting.include_common_setup_teardown to false in
your workspace/user settings.
For example:
"rocketUnitTesting.include_common_setup_teardown": false