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-Thread: 103376,595c75298fbdce96 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Is Aunit helpful? References: <8a1e58c0-2330-4475-8013-97df103dd85e@o19g2000yqb.googlegroups.com> <82r5ids1o9.fsf@stephe-leake.org> <20100805211820.52c18cb5.tero.koskinen@iki.fi> <8d166cfb-4850-42b6-ac25-d9ac00df7565@q35g2000yqn.googlegroups.com> Date: Sat, 14 Aug 2010 02:57:04 -0400 Message-ID: <82ocd5wukf.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:+E+2Sy9eXiIedqTx/aJNKy8ttO4= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: a48b04c663e35e029e66129637 Xref: g2news1.google.com comp.lang.ada:13265 Date: 2010-08-14T02:57:04-04:00 List-Id: "Yannick Duchêne (Hibou57)" writes: > About AUnit: just seen about what it is, how it is set up and how it > works. Seems a question is still pending : “how to be sure the test > cover all relevant case ?”. I do not see a way to be sure testing > cover all cases. Correct, AUnit does not do that. gcov does, although I have not used it very much. It can be difficult to use the output of gcov. > That is the main limitation of this kind of approach. What alternative approaches provide coverage information? > May be this is nice for regression tests and tests cases revealed > during application's life time... however, I don't believe this can be > used too much soon in a development stage. I use it all the time for development. I write the AUnit test and spec first, then the body. The test documents how the package is intended to be used, and helps focus the development process. -- -- Stephe