Chuck Esterbrook wrote:
>
> At 06:33 PM 4/30/2001 -0400, Geir Magnusson Jr. wrote:
> >We have a large test suite for the parser, with outputs to compare
> >against. We use JUnit for unit testing the whole pile. Not something
> >you can use in Pythonland of course, but I am sure there is something
> >similar...
>
> Ahem. Well yes. I was "secretly" planning to rip all your test suites, but
> in the process, review them as well and see if I could come up with
> anything new which would then be contributed back.
Well, I guess it's all covered by the ASL, so you don't even have to
contribute back :)
(but it would be appreciated...)
>
> My point earlier was that the inputs could be kept in a language neutral
> format and therefore shared by any Velocity implementation. Is that the
> case now, or is the "context data" hard coded in the Java testing code?
The templates are simple ASCII files, as are the comparison output, but
the context data is in Java code. Most of the context data could come
out, but remember that we can throw living objects into the context for
access, so we would have to use some sort of XML <-> object
serialization to represent neutrally. I'm game, tho..
> http://pyunit.sourceforge.net/ is the equivalent of JUnit. It's also
> included with the latest Python 2.1 release.
>
> See, for everything good in Java, there is an equivalent in Python.
> Also, you cannot say the same thing with s/good/bad/. ;-)
> (Sorry but after all these exchanges with Java folk, I had to say something.)
You're just pissed cuz we get to use { and } to delimit our blocks....
;)
geir
--
Geir Magnusson Jr. geirm@...
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
|