[Pyunit-interest] feature and usage questions.
Brought to you by:
purcell
From: Shae E. <sh...@ua...> - 2000-05-17 15:04:23
|
Yay PyUnit! It's easy to use and it helps me find bugs! It's not perfect though :) One thing I'm running across is that NameError (eg. the method doesn't even exist yet) comes back as a Failure, not as an Error, is this the correct behaviour? 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 admit, wanting one single report from multiple suites is a case of me being nitpicky... As for Tk GUI support, what about sticking support for PyUnit into IDLE? I recently found a page[1] for software that integrates JUnit into IBM VisualAge for Java. Possibly IDLE would be a good platform for a PyUnit builder/runner? [1] http://www.xpdeveloper.com/cgi-bin/wiki.cgi?BigBenTools -- sHae mAtijs eRisson (sH...@wE...) gEnius fOr hIre bRing mE fIve sQuirrels aNd nO oNe wIll gEt hUrt 13:00pm up 1 season, 1 squirrel, load average: 1+1j 0.5+2j 0.2+0.5j |