Hi,
<giant snip>
> I see your point. Unit tests are for
> testing the internal code contracts,
> and for some parts of the JBoss code,
> these have not even been documented
> with a single line of comment. I think
> we should try to at least document
> these internal contracts first.
My personal experience is that a unit test is way more informative than a
comment, and not necessarily much longer to write. Its very hard to have
the discipline to update a comment when the code changes (in my experience,
internal contracts change pretty frequently) -- much easier to get myself
to update the unit test when I see that red test failed bar.
When I first read the xprogramming unit test stuff I basically was thinking
"yeah- right- sure I'm going to spend all my time writing these tests"
After talking myself into trying it, I am astounded at the confidence tests
give me. I now only think my code works if I have unit tests for it.
>
> But for the end-user, the only thing
> that matters is if the external
> contracts are adhered to. The end-to-end
> tests in jbosstest check this.
>
>
> The point I was trying to make with
> that last comment is that the large
> user base of JBoss helps making JBoss
> robust.
> We simply cannot test JBoss in any
> possible configuration, under any
> possible operating system, with any
> possible Java VM.
> Here the feedback from users having
> problems with particular setups
> is extremely important.
> JBoss is system-level software, and
> to be useful system-level software
> _must_ be robust. Bug-free is IMHO
> not enough.
I have not previously worked on system level software, although I did write
some frameworks. I suspect that a good deal of lack of robustness is due
to people finding new paths through the code that were never before
exercised-- and they don't work. My experience is that unit testing is
extremely useful for fixing this.
>
>
> Best Regards,
>
> Ole Husgaard.
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
>
>
David Jencks
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]