Multiple Code coverage invocations
Depending on how your software development process
is set up, the convenience of having the AKGCC procedure
take care of everything might not outweigh the resource and time usage
to start a Code coverage collector for each program analysis.
z/OS Debugger
provides the ccstart script to start a Code coverage collector which remains
active. This collector can then be used in multiple Code coverage invocations. The
ccstop script can be used to stop the collector.
These scripts (ccstart, ccstop, and
codecov) are located in
/usr/lpp/IBM/debug/headless-code-coverage/bin/ if you installed z/OS Debugger in the default
location. For usage of these scripts, see Running code
coverage in headless mode by using a daemon in the IBM® Developer for z/OS Knowledge
Center.
- Invoke
ccstartwith option to use a fixed port number and option to redirect the output to a known location. - Invoke, as often as needed, programs to be analyzed with startup
option.
TEST(,,,TCPIP&<hostip>:<port>). - Invoke
ccstop. - Direct the Developer for z/OS client to the output location to see the reports.