[Chicago] Jython and doctests

Pete pfein at pobox.com
Wed Jul 16 22:00:38 CEST 2008


Have you just tried it?  The doctest module is pure python.  I don't  
know much about it's internals (or diddly about Java), but it might  
Just Work on Jython.

On Jul 16, 2008, at 3:40 PM, Garrett Smith wrote:

> Wow -- another hideous offspring of the genetically malformed  
> (talking about the constraints of Java - not the good folks trying  
> to make the best of it!)
>
> I'm thinking of something quite different.
>
> I'm sure everyone's tired of my junit rants, but let me reiterate: I  
> hate junit. I'd like to test Java  by writing "doctest code" in a  
> txt file that uses Jython's standard interface into the VM. I was  
> wondering if any of our resident Jython users have seen/heard of this.
>
> This would be possible with jpype, but that introduces CPython into  
> the mix, which isn't needed in this case.
>
> ----- "Kumar McMillan" <kumar.mcmillan at gmail.com> wrote:
>
>> On Wed, Jul 16, 2008 at 8:30 AM, Garrett Smith <g at rrett.us.com>
>> wrote:
>>> Has anyone out there seen Jython+doctests used as an alternative to
>> the
>>> massively sucky junit framework for testing Java apps?
>>
>> Not sure if this is what you meant or not but I had heard that
>> someone
>> ported Doctest to Java.  This was the first Google hit:
>> http://code.google.com/p/doctestj/ ... but if that is it then I'm
>> afraid they missed the point of Doctest entirely :(
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> http://mail.python.org/mailman/listinfo/chicago
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20080716/a20c4750/attachment.htm>


More information about the Chicago mailing list