[m-dev.] diff: fix line numbers for exception test cases

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Jan 10 20:10:43 AEDT 2001


On 08-Jan-2001, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> On 08-Jan-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > Why is that solution better?
> 
> It is less likely to be affected by other future changes, e.g. rearranged
> white space in stack dumps.
> 
> > I think it's better if the tests are testing the same code that gets
> > used "in the field".  Otherwise, if e.g. stack dumps stop working,
> > we won't know about it.
> 
> Yes, it is important to have a test case for each piece of functionality.
> However, having more than one test case for one piece of functionality
> (e.g. stack dumps, context printing) just creates more work in updating
> test cases when the functionality changes in trivial ways.

It's true that having more test cases does create more work.
But it also increases test coverage.  Often things fail only in
some wierd combination of circumstances.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list