IBM i Code Coverage for Visual Studio Code
This code coverage extension depends on Code for IBM i. Installing this will require that extension and install it automatically.
You can right-click on most types of sources to create a new Coverage Test. In this case, I called my source member
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.
How to include other programs
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.
We are PR friendly. Due to the nature of the complexity in IBM i Code Coverage, please reach out to us outside of this repository for us to take a look at your issue.