PyUnit and multiple test scripts

From: Calvin Spealman (calvin_at_ironfroggy.com)
Date: 02/27/05


To: python-list@python.org
Date: Sat, 26 Feb 2005 23:06:16 +0000

I'm trying to find the best way to use PyUnit and organize my test scripts.
What I really want is to separate all my tests into 'test' directories
within each module of my project. I want all the files there to define a
'suite' callable and to then all all those suites from all those test
directories into one big suite and run it all. I'm having trouble with
this.

My first barrier was just loading the modules. As I had to be able to find
them automatically (would be tedious to maintain a manual list of them) I
needed to then load the modules from the paths to the files after I found
them. This wasn't working, I just couldn't get it to load. I couldn't
understand the imp module correctly.

1) Is there a very simple way to just take a file path and name, that I
could use to open the source file, and load it as a module object, no
strings attached?

2) Is there already a framework around that will do what I need?

I've tried py.test, but I really do not like the way it displays results.



Relevant Pages

  • Spell checker?
    ... My Publisher 2007 seems unable to load the spell checker and/or add to ... the (custom) dictionary. ... Other parts of the Office 2007 suite, ...
    (microsoft.public.publisher)
  • J2EE Eclipse Project and properties file
    ... FileInputStream stream = new FileInputStream; ... load; ... File path: ... but I don't understand why an input strean cannot be ...
    (comp.lang.java.softwaretools)
  • Applications not working
    ... suite stopped working. ... I can load the ... applications but can't type anything. ...
    (microsoft.public.windowsxp.basics)
  • Applications not working
    ... suite stopped working. ... I can load the ... applications but can't type anything. ...
    (microsoft.public.windowsxp.basics)
  • Re: IE 5.0 & IE 6.0 on same machine OK?
    ... > load it on my new machine. ... My fantasy here is to let ... You could post in a Works newsgroup. ... If you are just looking for a nice office suite that isn't expensive, ...
    (microsoft.public.windowsxp.general)