Skip to content

Commit 8f00bce

Browse files
Add test stub preferences docs
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
1 parent bee6d8b commit 8f00bce

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
Loading
Loading

src/content/docs/developing/testing/writing.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ After selecting an option, a test suite will be created if it does not already e
4949

5050
![Generated Test Stub](Testing_GeneratedTestStub.png)
5151

52+
### Test Stub Preferences
53+
54+
There are various preferences that can be used to configure how the test stubs are generated. To access these preferences, go to the extension's settings and search for **Test Stub Preferences**.
55+
56+
![Test Stub Preferences](Testing_TestStubPreferences.png)
57+
58+
### Test Stub Preview
59+
60+
One notable preference is the **Show Test Stub Preview** which controls whether to show a preview of the test stub before adding it to the file or source member. Once this preference is enabled, the **Refactor Preview** view will be populated with a set of edits to insert the control options & directives, includes, prototypes, and the test cases. You will need to first select the checkboxes next to the items you want to insert and then click on any item to bring up a preview of the code in the editor. Once you are satisfied with the preview, you can click the **Apply** button to insert the code into your file or source member.
61+
62+
![Test Stub Preview](Testing_TestStubPreview.png)
63+
5264
## API Reference
5365

5466
In order to use the APIs provided by RPGUnit, you need to add the `TESTCASE` copybook to your test suite:

0 commit comments

Comments
 (0)