[Twisted-Python] Some way for Trial to allow selective running of tests?

Don Dwiggins ddwiggins at advpubtech.com
Thu Aug 27 16:32:42 EDT 2009

Phil Christensen wrote:
> trial takes an argument at the command-line where you can specify a  
> package or test case.
> for example:
> 	trial twisted
> 	trial twisted.test
> 	trial twisted.test.test_explorer
> 	trial twisted.test.test_explorer.TestBrowser
> 	trial twisted.test.test_explorer.TestBrowser.test_chain
> lets you get more and more specific.
> -phil

Sorry, I'm feeling dense.  I currently run it as
"trial MyServerTestFile.py"; it's not a package or part of one.  In the 
file are several classes, each with several test cases.  How would I 
adapt the above to my needs?

Don Dwiggins
Advanced Publishing Technology

More information about the Twisted-Python mailing list