How to couple pyunit with GUI?

Fabio Zadrozny fabiofz at gmail.com
Thu May 18 13:43:53 CEST 2006


Hi Mark,

On 5/18/06, Mark Geyzer <mark.geyzer at gmail.com> wrote:
>
> Fabio, thank you for your response, but I'm afraid that you misunderstood
> me - probably, I was not too clear. I do no test GUI - on the contrary, I am
> testing a HW interface. What I do need is a GUI equivalent of the
> TextTestRunner method. Any ideas?
>

My fault, I did  just a 'fast-read'.

Well, I use pydev (http://pydev.sf.net), which allows me to select a folder
and then recursively run all the unit-tests below that folder. Pydev is the
gui, but the underlying module that actually runs the tests does not
actually need a gui (I'm sending it attached). Just send it the dir you want
and it will recursively inspect the modules, get the unit-tests and run
them.

You can probably easily extend it to run the files you want and not get
things recursively if you don't want it... But with all that, It is still a
command-line utility -- if you stilll want a gui to it, try pydev, which
will allow you to right-click a folder and run all the unit-tests below it.

Cheers,

Fabio

On 5/17/06, Fabio Zadrozny <fabiofz at gmail.com> wrote:
> >
> >
> >
> > On 17 May 2006 08:24:40 -0700, volcano < Mark.Geyzer at gmail.com> wrote:
> > >
> > > I am desperately looking for an info how to combine a testing
> > > application with decent GUI interface - the way most xUnits do. I
> > > believe I have seen something about using Tkinter, but I do not
> > > remember - where.
> > > I am working on a complex testing application built over unittest
> > > module, and I need GUI interface that will alllow me to select tests
> > > at
> > > different levels of test hierarchy tree.
> > > I am new to python, so say everything slow and repeat it twice:)
> > >
> > > --
> > > http://mail.python.org/mailman/listinfo/python-list
> >
> >
> >
> >
> > Have you checked http://pyguiunit.sourceforge.net/ -- it is for PyQt,
> > but can probably be adapted for other GUIs.
> >
> > -- Fabio
> >
>
>
>
> --
> Mark Geyzer
> Software Engineer,
> tel: +972-52-6782603
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060518/80b9751c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: runfiles.py
Type: text/x-python
Size: 5979 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20060518/80b9751c/attachment.py>


More information about the Python-list mailing list