You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/developing/testing/overview.mdx
+25-8Lines changed: 25 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,12 +37,24 @@ The following extensions can be installed from the Visual Studio Code Marketplac
37
37
38
38
The `RPGUNIT` library must be be installed on your IBM i in order to leverage the framework and assertions that it provides. It can be installed easily via the extension using the steps below which is the recommended approach or manually using the instructions [here](https://irpgunit.sourceforge.io/help/).
39
39
40
-
<Asidetype="note">
41
-
By default, `RPGUNIT` is the name of the RPGUnit product library which will be installed on the host. This can be configured if necessary by going to the extension's settings and searching for the **Product Library** setting.
42
-

43
-
</Aside>
40
+
#### Preconditions
41
+
RPGUnit requires OS400 7.5 for the latest features. It can also be installed on 7.4 and 7.3 if the following PTFs have been installed:
42
+
43
+
**7.4**
44
+
* ILE RPG runtime: SI71537
45
+
* ILE RPG compiler: SI71536
46
+
* SQL Precompile support UTF-8 stream files: SI70942
47
+
48
+
**7.3**
49
+
* ILE RPG runtime: SI71535
50
+
* ILE RPG compiler: SI71534
51
+
* SQL Precompile support UTF-8 stream files: SI70936
52
+
53
+
If the PTFs have not been installed, the library must be recompiled to disable the latest features, such as `assertEqual()`. PTFs SI70942 and SI70936 are required for compiling test suites from UTF-8 (CCSID: 1208) source stream files.
44
54
45
-
To install the library via the extension, follow these steps:
55
+
#### Library Installation via Extension
56
+
57
+
Once the PTFs are installed, you can install the library via the extension using the folllowing steps:
46
58
47
59
<Steps>
48
60
1. Connect to your IBM i system.
@@ -58,9 +70,14 @@ To install the library via the extension, follow these steps:
By default, `RPGUNIT` is the name of the RPGUnit product library which will be installed on the host. This can be configured if necessary by going to the extension's settings and searching for the **Product Library** setting.
75
+

76
+
</Aside>
77
+
61
78
### 3. CODECOV
62
79
63
80
To generate code coverage results, the `CODECOV` command must be installed on your IBM i via PTF:
In RPGUnit, a test case is an exported procedures that starts with the name `test`. This also means that you should not export procedures starting with `test` if they are not intended to be a test case.
12
12
13
-
**Example test cases:**
13
+
Listed below are some example test case names that follow this naming convention:
14
+
14
15
*`test_getEmployeeDetail`
15
16
*`test_getDeptDetail`
16
17
*`testIsPalindrome`
@@ -24,13 +25,14 @@ A test suite consists of one or more test cases in a file or source member. This
24
25
***Source Members**: Source members can be put in any source file, but it is recommended to store them in a source file named `QTESTSRC`. By default this is where the extension will look for test suites in your library list. You can configure the extension to search other source files by going to the extension's settings and searching for the **Test Source Files** setting.
25
26

26
27
27
-
**Example test suites:**
28
-
* Local Files
28
+
Listed below are some example test suite names that follow this naming convention:
0 commit comments