Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit 050e003

Browse files
committed
Ready to release
1 parent 5007823 commit 050e003

File tree

3 files changed

+45
-9
lines changed

3 files changed

+45
-9
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ jobs:
1111
- run: npm install
1212
- uses: lannonbr/vsce-action@master
1313
with:
14-
args: "package"
15-
- uses: xresloader/upload-to-github-release@master
14+
args: "publish -p $PUBLISHER_TOKEN"
1615
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
with:
19-
file: "*.vsix"
20-
verbose: true
21-
update_latest_release: true
22-
draft: false
16+
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "code-coverage-ibmi",
33
"displayName": "Code Coverage for IBM i",
44
"description": "Run and display Code Coverage on your IBM i right from VS Code.",
5-
"version": "0.0.7",
5+
"version": "0.1",
66
"repository": {
77
"url": "https://github.com/halcyon-tech/code-coverage-ibmi"
88
},

readme.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# IBM i Code Coverage for Visual Studio Code
2+
3+
This code coverage extension depends on [Code for IBM i](https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.code-for-ibmi). Installing this will require that extension and install it automatically.
4+
5+
## Setup
6+
7+
1. Install this extension
8+
2. Make sure you have `CODECOV` installed. [See slide 28 here from IBM for PTF information](https://www.ibm.com/support/pages/system/files/inline-files/Command%20Line%20Code%20Coverage.pdf).
9+
3. Make sure `QDEVTOOLS` in on your library list if not installed into QGPL.
10+
11+
## The basics
12+
13+
```rpgle
14+
**FREE
15+
16+
// test1.rpgle
17+
18+
Dcl-s anumber int(5);
19+
20+
anumber = 5;
21+
22+
if (anumber = 10);
23+
dsply 'The number is 10!';
24+
else;
25+
if (anumber = 5);
26+
//This is the only DSPLY that should execute.
27+
dsply 'The number is 5!';
28+
else;
29+
dsply 'The number is not 5!';
30+
endif;
31+
endif;
32+
33+
Return;
34+
```
35+
36+
You can right-click on most types of sources to create a new Coverage Test. In this case, I called my source member `test1.rpgle`, and right-clicking on it shows that you can create a new Coverage Test. Upon clicking that menu item, a new wizard will appear when you can enter information about the test—mostly prefilled. You can leave it as the defaults and save it.
37+
38+
If you head over to the Code Coverage extension tab, you will see your newly created test there. When you click on it, it will run the test in the background. As it runs you will see the spinning icon, which indicates it is running. When the test is finished running, it will show you all the results of the test. The results include a list of sources that the Coverage Test ran across and what percentage of that code was executed. You are able to click on a source to show the coverage line-by-line.
39+
40+
## How to include other programs
41+
42+
Right now, you can only run coverage tests directly on specific programs. Instead of specifying many other programs or service programs, we let the user provide a binding directory when creating the coverage test and the extension will automatically include all service programs in that directory in the coverage test.

0 commit comments

Comments
 (0)