Generating code coverage in headless mode using Remote Debug Service
To run code coverage in headless mode using Remote Debug Service, ensure that Remote Debug Service is started and configured with code coverage collection options, and the settings of the application are specified to connect to Remote Debug Service.
Before you begin
Note: Remote Debug Service is only available
with IBM® Developer z/OS® Enterprise Edition and IBM Z and Cloud Modernization Stack (Wazi Code).
- Ensure that Remote Debug Service is running with code coverage collection enabled. If not, ask your system programmer to configure as instructed in Customizing with the sample job EQARMTSU and start Remote Debug Service.
- Obtain the port for local connections for Remote Debug Service from your system programmer.
- Obtain the port configured for Code Coverage Service and find whether CCS is secured. If Remote Debug Service is running on a secured port, then CCS also needs to run on a secured port.
- Obtain the root directory where Remote Debug Service writes code coverage results from
your system programmer. By default, results are stored in
$HOME/CC/user_ID, where
$HOME
is the home directory of the user running Remote Debug Service. A different directory root_location/user_ID might be used if otherwise specified by the system programmer.
Procedure
What to do next
-e=CCPDF
option in
your startup key to generate a PDF or use the Code Coverage Results view in the
Eclipse IDE.Viewing the report in the Code Coverage Results view
Procedure
To view the code coverage report in the Eclipse IDE, complete the following steps: