I'm perplexed by another aspect of the testing framework.  It doesn't
seem possible to keep track of the real number of passes and fails in
a class with multiple tests.

Maybe if Result were something like...

package gnu.test;
public class Result
{
   private int passed = 0;
   private int failed = 0;

   public Result(int passed, int failed)
   {
      this.passed = passed;
      this.failed = failed;
   }
...
}

So then we might want to know what passed and failed.
So we could change the above to...

package gnu.test;
public class Result
{
   private Pass passed[] = null;
   private Fail failed[] = null;

   public Result(Pass passed[], Fail failed[])
   {
      this.passed = passed;
      this.failed = failed;
   }
...
}

A small array helper class to hold an array and grow it as needed
would be useful without compromising the testsuite by relying on
Vector, etc.  Nothing fancy needed.

Anyway, opinions welcome.  I was just trying to convert a test and ran
into some problems I don't like.  This is similar to Paul's suggestion
of returning an array of Result objects.

Brian
-- 
|-------------------------------|Software Engineer
|Brian Jones                    |[EMAIL PROTECTED]
|[EMAIL PROTECTED]                    |http://www.nortel.net
|http://www.classpath.org/      |------------------------------

Reply via email to