Re: [iText-questions] state-based J/NUnit testing of iText considered harmful

2006-12-04 Thread Bruno Lowagie (iText)
steve poling wrote: > I have decided to replace all such unit tests of mine with slightly more > "interaction-based" tests. I see you have already encountered the limitations summed up by Paulo. Nevertheless, there are aspects of a PDF file that can be tested; for example: - the number of pages,

Re: [iText-questions] state-based J/NUnit testing of iText considered harmful

2006-12-03 Thread William L. Thomson Jr.
On Sun, 2006-12-03 at 12:10 -0500, steve poling wrote: > > Moreover, when some bozo like me claims something is broken in iText, > you can point to the relevant unit test and ask if that passes on his > machine. If so, he's got the "right" way to do what he wants. I think on Gentoo we are just l

[iText-questions] state-based J/NUnit testing of iText considered harmful

2006-12-03 Thread steve poling
Paolo, I've written unit tests that give false alarms much as you describe. For example, I have a number of NUnit tests that all fail b/c I write a PDF, compare it to a baseline PDF, and they fail, because the iText version number in the header (or something else) changes. It's a pain in the b