Thread: [Pyunit-interest] ANN: Pycotin 0.1, a Python Cocoa Test Interface for PyUnit
Brought to you by:
purcell
From: Dinu G. <gh...@da...> - 2002-07-19 09:25:31
|
Sorry for the typo... I think, I should really only use the abbreviated "sf.net"... :-/ Dinu ----- Forwarded message from <gh...@da...> ----- Date: Fri, 19 Jul 2002 11:20:51 +0200 (CEST) From: Dinu Gherman <gh...@da...> Reply-To: Dinu Gherman <gh...@da...> Subject: ANN: Pycotin 0.1, a Python Cocoa Test Interface for PyUnit To: pyt...@py...,pyu...@li... Hi, for those who care, I've just released "Pycotin", a native Cocoa GUI to PyUnit testing on OS X. It's been just born, but looks verys promising. Please find the code plus two screenshots in my Starship Python cabin: http://python.net/~gherman/#Pycotin Regards, Dinu PS: From the README: Pycotin 0.1 Pycotin (Python Cocoa Test Interface) is a Cocoa GUI to Steve Purcell's PyUnit test framework (1) on Mac OS X. For now, its user interface is very much designed after the existing Tkinter one (2), but that might slightly change again. Pycotin was developped from its author's personal frust- ration with running (or rather not running) Tkinter on Mac OS X as the only existing GUI for PyUnit. While it might well be possible to make Tkinter run on this plat- form, it was probably easier to write this little tool... Basically, with Pycotin you can "open" Python files (with extension ".py") and execute testsuites created in these files with the "unittest" module of the Python 2.0 stan- dard library. Right now Pycotin trys to import a function named "suite()" or "makeSuite()" from an opened Python module which it assumes to build and return a testsuite. This can clearly be made much smarter, but also depends on your habits as testsuite designer. The test files in samples/ were shamelessly copied from Steve Purcell's own original test cases for PyUnit 1.4.1 (just skipping the Tkinter ones for obvious reasons). I added only one new file, "listtestsfail.py" which shows a failing test, too. Pycotin is in early alpha phase! Be not surprised to see some buglets when dealing with paths containing blanks! ----- End forwarded message ----- |
From: Steve P. <ste...@ya...> - 2002-07-19 09:49:14
|
Great! Now I have to find a Mac on which to try it out... -Steve Dinu Gherman wrote: > for those who care, I've just released "Pycotin", a native > Cocoa GUI to PyUnit testing on OS X. It's been just born, > but looks verys promising. Please find the code plus two > screenshots in my Starship Python cabin: > > http://python.net/~gherman/#Pycotin > > Regards, > > Dinu |
From: Dinu G. <gh...@da...> - 2002-07-19 10:35:10
|
Steve Purcell <ste...@ya...>: > Great! > > Now I have to find a Mac on which to try it out... It was long on my todo list... One interesting aspect about the Python code here is that I'm using my own subclass of TestResult, that continuously writes status information to a file (which is then contin- uously displayed in the GUI). This could be a way of letting other non-Python GUIs do the same thing and might be worth being generalised, some- how, but I've actually never seen the PyUnit Tkinter GUI running. Regards, Dinu |
From: Phlip <ppl...@om...> - 2002-07-19 14:51:52
|
Dinu Gherman sez: > for those who care, I've just released "Pycotin", a native > Cocoa GUI to PyUnit testing on OS X. It's been just born, > but looks verys promising. Please find the code plus two > screenshots in my Starship Python cabin: > http://python.net/~gherman/#Pycotin I'm not a cocoa-nut, so I can't try it... ...but may I ask if it has these features? - triggers tests when you save your file - incremental test selection (all or a batch or one) - navigates your editor to a test method, source method, or error location I ask because my Pmw/Tkinter test browser has these features... http://c2.com/cgi/wiki?PyUnitTestBrowser ...and they represent a very tight coding cycle I call OneButtonTesting. If Pycotin does not yet have these features, please feel free to raid PyUnitTestBrowser for sample code. It triggers tests from any editor (under the wild assumption that all of them can save files), and it can navigate Idle, Kate, or Vim. -- Phlip http://www.greencheese.org/PeaceAndCalm "We may eventually come to realize that chastity is no more a virtue than malnutrition." -- Alexander Comfort |
From: Dinu G. <gh...@da...> - 2002-07-19 16:30:38
|
Phlip <ppl...@om...>: > I'm not a cocoa-nut, so I can't try it... Hi, I've uploaded an MPEG-4 Quicktime movie that will show everything Pycotine can do right now! ;-) (785 KB) http://python.net/~gherman/projects/pycotine/sample.mov > ...but may I ask if it has these features? > > - triggers tests when you save your file > - incremental test selection (all or a batch or one) > - navigates your editor to a test method, source method, > or error location There is no integration yet to any editor whatsoever. Hence, none of these features are present! > I ask because my Pmw/Tkinter test browser has these features... > > http://c2.com/cgi/wiki?PyUnitTestBrowser Looks nice, I'll look deeper into it. Thanks! Dinu |