I have once again tested this, but with no luck :(
Using the following procedure,
Right click on my program object > Code Coverage (prompt) > Batch
Leave all tabs at default except for:
Teardown code is as follows:
In the teardown code above the close mode of GetClientRate (which is the
API that I am running code coverage for) switches LR *on and returns
(which I suspect may be the cause of the issue ?!?)
Running the coverage gives me exactly the same results: No Main
procedure coverage at all (identified by buck as an issue with programs
with prototyped entry parameters) and coverage which only covers one of
the test cases.
Spooled output from the run shows that all test cases have run:
*** Tests from TSB.GETCLR ***
Success. 45 test cases, 131 assertions, 0 failure, 0 error.
Running the same RUCALLTST command with a breakpoint on one of the lines
which the coverage report shows in RED (Not Run), breaks during three of
the test cases, proving that this line is covered by multiple test
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.