Re: [Pyunit-interest] feature and usage questions.
Brought to you by:
purcell
From: Michal W. (sabren) <sa...@ma...> - 2000-05-17 18:02:02
|
On Wed, 17 May 2000, Shae Erisson wrote: > Also, I'd like to be able merge suites, is there some way to do that? > Right now I have a test_ast.py and a test_brm.py and they both build > suites, I know I can use: > #test_all.py: > import test_ast > ... > suite.addTest(test_ast.ASTTestCase("checkFileLoads")) > suite.addTest(test_brm.BRMTestCase("checkFileLoads")) > but that requires code duplication(yuk) if I want test_brm to be able to > run its own tests by itself. > Any suggestions? I made a generic tool that looks for a suite called "suite", or a dictionary called "suites" in a module called "test"... It just runs whatever it finds.. It's pretty simple, but if you want it, you could probably modify it fairly easily to take a module name as a parameter.. > I admit, wanting one single report from multiple suites is a case of me > being nitpicky... Not at all. I'm often working with many different libraries at once, and I want to be able to test them independently, or test the whole lot of whatever's relevent to my program.. :) I know brm is bicycle repair man.. What's ast? Abstract syntax tree? how's the project coming, btw? :) Cheers, - Michal ------------------------------------------------------------------------- http://www.manifestation.com/ http://www.linkwatcher.com/metalog/ ------------------------------------------------------------------------- |