[ENH] Tests-md

marcus at ira.uka.de marcus at ira.uka.de
Thu Jan 29 12:13:47 UTC 2004


from preamble:

"Change Set:		Tests-md
Date:			29 January 2004
Author:			Marcus Denker

These are all the tests from the BaseImage tests package on SqueakMap.

We decided to add these to the image to make it more  easy to add new
tests
and, most important, allow the tests to be used as runnable
documentation.

Conventions used:

a) All tests are in a parallel class-category with the prefix Tests-
    This makes it easy to remove all tests.

b) Tests for single classes: These tests are named ClassToBeTestedTest,
all
    tests that test a single method are named testOriginalMethod, and
are
    in a method-categorie named like the original, but with the prefix 
    'testing - '.
    For these kinds of tests an abstrakt subclass of TestCase (named
ClassTestCase)
    is provided that adds common tests that seem to be usefull in all
cases.
    (three up to now: a test if all methods are categoriesed, a test to
send new
    and a test that looks if a class comment is provided)

c) Tests that are testing more than one class (whole subsystems) or test

    for complex bugs are of course possible. These can be put in an
existing
    'Tests-*' category or even add their own (like Tests-KCP, or
Tests-Bugs).

"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Tests-md.cs.gz
Type: application/octet-stream
Size: 39842 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040129/4eb6cd2f/Tests-md.cs.obj


More information about the Squeak-dev mailing list