From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,88ed72d98e6b3457 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-10 09:48:58 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!feed.news.nacamar.de!news.csl-gmbh.net!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.nuthinbutnews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny01.gnilink.net.POSTED!53ab2750!not-for-mail Subject: Re: Standard Library Interest? Newsgroups: comp.lang.ada References: <3F7F760E.2020901@comcast.net> <3F8035B0.7080902@noplace.com> <3F816A35.4030108@noplace.com> <3F81FBEC.9010103@noplace.com> <6Ingb.30667$541.13861@nwrdny02.gnilink.net> <3F82B4A4.5060301@noplace.com> <3F82F527.3020101@noplace.com> <3F846B5E.9080502@comcast.net> <3F855460.6020804@noplace.com> Message-ID: Content-Type: text/plain; charset=iso-8859-15; format=flowed From: Ed Falis MIME-Version: 1.0 User-Agent: Opera7.11/Win32 M2 build 2880 Date: Fri, 10 Oct 2003 16:48:57 GMT NNTP-Posting-Host: 141.154.67.174 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny01.gnilink.net 1065804537 141.154.67.174 (Fri, 10 Oct 2003 12:48:57 EDT) NNTP-Posting-Date: Fri, 10 Oct 2003 12:48:57 EDT Xref: archiver1.google.com comp.lang.ada:619 Date: 2003-10-10T16:48:57+00:00 List-Id: On 10 Oct 2003 10:59:05 -0400, Stephen Leake wrote: >> I would want to provide A with a simple button to fire the test >> battery. And this button should be at the same place and have the >> same shape and color for all packages of the standard library! > > Yes. My answer is "from you normal command line, run 'make test'". > Your answer appears to be "somehow run code that invokes > Foo.Self_Test". > >> It is a non-issue for A, which test framework has been used by the >> author of the library package. > > Well, it matters a little, if it affects the answer to point 2). But > it mostly doesn't matter. Note that part of the point of AUnit is to allow composition of test suites, so that it's relatively straightforward to execute groupings of them with a single command. (Noted that this is different than the build issue). >> And who said that the auxiliary packages should be children? Just >> "with" them, when implementing your tests. If this does not compile >> because the "with"ed toolbox is not available, A has no chance to do >> these tests by herself anyway, even if she'd run make. > > Sometimes you need visibility into the private part to implement a > good unit test; that means at least some of the unit test has be a > child package. Right. Generally, if I find mysef in this situation (usually in the form of needing additional queries for unit testing), I add a child of the unit under test to provide those queries. - Ed