Bug in SUnit?

David Farber dfarber at numenor.com
Wed Nov 13 18:55:08 UTC 2002


Ok, I found my code. It looks like:

MidasTestSuite class
suite
  ^TestSuite new
    addTests: MidasTest suite tests;
    addTests: PaycheckTest suite tests;
    addTests: PaycheckWizardTest suite tests;
    yourself

So, MidasTestSuite is my test suite class. It conglomerates the tests from MidasTest, PaycheckTest and PaycheckWizardTest. This is code from a 3.0-3545 image. I verified right now that a failing test in one of the test classes will show up in the test suite. If this doesn't work for you and you still think this is a bug in sUnit, let me know what version-update level you are working with.

Hope this helps.

david

At 09:50 AM 11/13/2002 -0800, you wrote:
>
>	So, I was writing a TestSuite last night for my app.  It covers
>two classes, each of which has a single test.  One of the tests succeeds,
>and one of the tests errors (i.e. neither succeeds nor fails).  I created
>a TestSuite in a third class that returned the tests from the first two.
>This third test runs both tests (I can see output in Transcript), but
>declares the tests were successful.
>
>	Has anyone seen this before?  The usage of TestSuite wasn't
>completely obvious, but it does seem to actually run my tests, so it seems
>like I got it right.
>
>--
>SPY                      My girlfriend asked me which one I like better.
>pub  1024/3CAE01D5 1994/11/03 Dustin Sallings <dustin at spy.net>
>|    Key fingerprint =  87 02 57 08 02 D0 DA D6  C8 0F 3E 65 51 98 D8 BE
>L_______________________ I hope the answer won't upset her. ____________
>
>
>
--
David Farber
dfarber at numenor.com



More information about the Squeak-dev mailing list