So I've been studying XP and now it's time to start using it. I'm using
Debian unstable so I apt-get python2.2-unit and python2.2-tk (by the
way, if the Debian maintainer for python2.2-unit reads this,
python2.2-tk should probably be in Recommends:) and I'm ready to rock
right?
Somehow I'm missing something...
Here's how I thought that I would use it:
I'm working on my project, time to run a test, bells and whistles are
fun so I'll use the tkinter gui
python2.2 /usr/lib/python2.2/site-package/unittestgui.py
mytests.MyTestCase
This is not exactly pretty but to make it better I understand I would
need to make a little scriplet or install unittestgui in the PATH or
something, no big deal.
However, I get an error because unittestgui can't find my test class.
Of course... the current directory is not in sys.path so it's not
finding my module.
Anyway, it sure looks like I'm going to have to spend a little time to
either write a little executable for each of my projects, or spend a
little more time and come up with a more general solution that I can
just place in the PATH.
Has anyone already done this? Or am I just missing the boat here? Am I
misunderstanding something fundamental about the usage of unittest?
Feel free to clue me in.
Ken Causey
ke...@in...
P.S. I'm not on the list so please be sure to respond directly to me as
appropriate.
|