Buck is on the money.
Use the append settings that he has documented to accumulate the coverage
of all calls to a program.



Regards,

Edmund (E.H.) Reinhardt
Technical Architect for Rational Developer for i



Phone: 1-905-413-3125 | Home: 1-905-854-6195 IBM
E-mail: edmund.reinhardt@xxxxxxxxxx
RDi YouTube: 8200 Warden Ave
www.youtube.com/user/IBMRational#g/c/62DF24D5BCD43501 Markham, ON L6G 1C7
Find me on: LinkedIn: Canada
http://ca.linkedin.com/in/edmundreinhardt/






From: Buck Calabro <kc2hiz@xxxxxxxxx>
To: wdsci-l@xxxxxxxxxxxx,
Date: 06/06/2014 05:05 PM
Subject: Re: [WDSCI-L] RDi 9.1 Code coverage tool - Main Procedure not
covered
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>



On 6/6/2014 3:31 PM, Aaron Price wrote:
Buck,
Reading your post I think I have just realised what may be happening.
Do
you have a teardown routine in the test you are running?

No, no teardowns for me. I haven't had to deal with variable overrides
/ library lists / temporary files being dynamically swapped between tests.

I am 99% sure (I have no AS400 access till Monday to check) that there
is
a teardown routine in the one I am running which is closing down the
program/temporary files/overrides etc between each test run. Judging
by
this, http://rpgunit.sourceforge.net/cookbook.html#tear-down-close-all
it
looks like the teardown routine does execute between each test case.
This may explain why it is only showing the final run of the
program... if
it is this though as I would still expect the amalgamated results for
the
entire batch job to be shown, sounds like a bug in RDi

That's a great thought! I don't have any existing tests with a teardown
so I added a teardown to one of my simple suites; all it has is a dsply
so there's something that executes. I now see the same thing as you -
only one of the procedures shows coverage.

When I changed to .Append to previous run. I see coverage for all the
procedures. Give it a try.
--buck
--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.