[Chicago] Jython and doctests

Feihong Hsu hsu.feihong at yahoo.com
Wed Jul 16 23:19:34 CEST 2008


Yeah, at the very least I would expect the doctest module to work with Jython 2.5 alpha. 


--- On Wed, 7/16/08, Pete <pfein at pobox.com> wrote:
From: Pete <pfein at pobox.com>
Subject: Re: [Chicago] Jython and doctests
To: "The Chicago Python Users Group" <chicago at python.org>
Date: Wednesday, July 16, 2008, 3:00 PM

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

_______________________________________________
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/054e9579/attachment.htm>


More information about the Chicago mailing list