Allow me... (warning, non iText/PDF related rambling) ;)
It's not about adding unit tests to your code. It's about adding code to
your unit tests.
Well written unit tests tell you (the developer) what exactly you need
to implement to make the test run (i.e. acts as a low-level spec). When
the bar goes green you can go home happy that the code does exactly what
it needs to do... not more, not less.
Afterwards it also tells other developers how to interface with your
code, so it acts as documentation. (i.e. acts as com/lowagie/examples/)
Of course, all this relies on your ability to write good tests. I too
have seen tests that didn't test anything (but appeared to do so) - and
that's worst than no testing, because it leads to wrong assumptions and
wastes time.
For quality of code you have other tools, like checkstyle and pmd.
Daniel
PS: I can't claim to be an expert in test-driven development. I've only
really got into it a few months ago because it's used here at work, but
I'm bought by it already.
bruno wrote:
Paulo Soares wrote:
It's essentially impossible to compare PDFs
I second that, yet people keep on asking for PDF Unit tests.
It's as if you are a bad Java programmer if you don't provide
Unit tests. Based on my experience, I'd rather say that writing
Unit test doesn't make you a good programmer. I have seen
lots of useless Unit test code that tells you absolutely nothing
about the quality of the code.
br,
Bruno
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
--
Daniel Farinha
Software Developer
Genial Genetic Solutions Ltd
The Heath Business & Technical Park
Runcorn, Cheshire WA7 4QX
Tel: +44 (0)870 757 9300
Fax: +44 (0)870 757 9301
Email: [EMAIL PROTECTED]
Website: www.genialgenetics.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions