embedding tests nearer the code
simon at joyful.com
Sat Apr 12 19:58:50 UTC 2003
"Andreas Raab" <andreas.raab at gmx.de> writes:
> primary reasons why people often _don't_ write tests. To me, the tests
> really should be embedded right into the method you're writing - making
> extra classes, accessors and the like just gets into your way and
> detaches the place where you find the code from the place where you find
> the test. It can be tremendously hard to guess in which class exactly
> you may find a test (if any) for a certain method.
I agree. I assume "embedded into the method" requires some future UI
enhancement. But right now, how about putting tests in the class they test
? Category "tests". Just a small SUnit modification needed I think.
More information about the Squeak-dev