[Twisted-Python] Trial - A replacement for pyunit.
Jonathan Lange
jml at ids.org.au
Sat Jan 4 22:11:30 EST 2003
On Fri, 2003-01-03 at 23:35, Jonathan Lange wrote:
> Announcing "Trial".
>
CVS HEAD now uses trial.
admin/runtests has been updated.
It's been tested with python 2.1 and 2.2 on debian linux.
It's almost exactly like pyunit in api.
Where you did
from twisted.trial import unittest
now do:
from pyunit import unittest
Similarly
class MyTest(unittest.TestCase):
def __init__(self, method='runTests'):
unittest.TestCase.__init__(method)
# ...
becomes
class MyTest(unittest.TestCase):
def __init__(self):
# ...
TODO (maybe):
- Add recursive search option (for -p)
- Fancy GUI
- Yummy async features.
- Randomize execution order
- Option to repeat tests n times.
- Incorporate warner's reactor cleaning patches
- Web reporter.
jml
More information about the Twisted-Python
mailing list