cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <>
Subject Re: Getting test cases written
Date Sat, 18 May 2002 15:16:16 GMT

David Crossley wrote:

> Is "unit testing" different to "functional testing", or are they
> complementary?

They are indeed complimentary. In a nutshell, unit tests ensure that the 
indiviviual methods within individual classes behave as expected. 
Funtional tests ensure that the system as a whole behaves as expected. 
In other words, unit tests operate on classes (in many cases individual 
methods), functional tests will emulate a user actually using the system 
as a whole so operate on combinations of classes.

> Here are a few relevant Anteater threads ...


Thanks, I will look into Anteater (took a brief look the other day, 
looks like good stuff).

> You mention something above that could be key ... if only
> unit tests were interesting. I wonder if Cocoon could help
> itself here. If the results of running the test suite were generated
> as xml, we could have a Sample that demonstrates how happy
> Cocoon is with its current state.

JUnit (the most popular unit testing tool, does 
indeed export its results in XML format. There are also lots of tools 
that will show how much code is covered by the tests. It would certainly 
be possible to create some nice reports showing how well the code is 

> The developers would like to
> be sure that their favourite classes were behaving well.

So what do other developers think of this. Is it worth the effort? Will 
you take responsability for improving the test coverage of your code if 
given suchg reports?


To unsubscribe, e-mail:
For additional commands, email:

View raw message