Home > Archive > Extreme Programming > November 2006 > Have I missed the point?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Have I missed the point?
|
|
| robjoel@hotmail.co.uk 2006-11-15, 6:58 pm |
| I really, really want to use unit testing but ... I don't seem to be
able to get it off the ground so to speak. Everytime I try to start
unit testing it ends up being at a higher level than a pure component.
To illustrate I have been implementing some usecases for a small
project and I find as I implement that domain models into unit cases
that the code and classes seem to proliferate and that one usecase and
corresponding small number of classes I have an ever growing number of
classes. I frequently find myself cannot see the wood for the trees
(completing the original unit test). A common experience I also have
that if I try a bottom up approach with a design then I find that the
functionality gap is typically large.
| |
|
| robjoel wrote:
> I really, really want to use unit testing but ... I don't seem to be
> able to get it off the ground so to speak. Everytime I try to start
> unit testing it ends up being at a higher level than a pure component.
> To illustrate I have been implementing some usecases for a small
> project and I find as I implement that domain models into unit cases
> that the code and classes seem to proliferate and that one usecase and
> corresponding small number of classes I have an ever growing number of
> classes. I frequently find myself cannot see the wood for the trees
> (completing the original unit test). A common experience I also have
> that if I try a bottom up approach with a design then I find that the
> functionality gap is typically large.
Please post an example of one of these unit tests.
In general, one must let go of thinking about big models. Think about small
functions, and about trying to keep them small. Don't write entire scenarios
into your first unit test; just write in the few details you need done.
--
Phlip
[url]http://www.greencheese.us/Z Land[/url] <-- NOT a blog!!!
| |
| Ron Jeffries 2006-11-15, 9:58 pm |
| On 15 Nov 2006 12:32:36 -0800, robjoel@hotmail.co.uk wrote:
>I really, really want to use unit testing but ... I don't seem to be
>able to get it off the ground so to speak. Everytime I try to start
>unit testing it ends up being at a higher level than a pure component.
>To illustrate I have been implementing some usecases for a small
>project and I find as I implement that domain models into unit cases
>that the code and classes seem to proliferate and that one usecase and
>corresponding small number of classes I have an ever growing number of
>classes. I frequently find myself cannot see the wood for the trees
>(completing the original unit test). A common experience I also have
>that if I try a bottom up approach with a design then I find that the
>functionality gap is typically large.
You might find some of the test-driven development articles on my web
site to be interesting and helpful ... some folks do ...
Regards,
Ron Jeffries
www.XProgramming.com
|
|
|
|
|