[Twisted-Python] Trial: testing multiple test modules in one go?

Tim Allen tim at commsecure.com.au
Wed Nov 4 21:02:39 EST 2009


Paul Goins <general at vultaire.net> wrote:
> My project has 160 or so test functions spread across 29 test modules.
> The layout is something like this:
> 
> project_root/
>   <project>/
>     <module>.py
>     <module>.py
>     ...
>   tests/
>     <test_module>.py
>     <test_module>.py
>     ...
>     unit_tests.py
> 
> Running tests one-by-one ("trial tests.<test_module>") works perfectly.
>  However, I want to test them all in one go, and can't find a "proper"
> way to do it.

Does "trial tests" not work? (you probably need a tests/__init__.py)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20091105/4d1c1c85/attachment.pgp 


More information about the Twisted-Python mailing list