From: Dinu G. <gh...@da...> - 2001-05-18 07:50:34
|
Steve Purcell wrote: > > Fred L. Drake, Jr. wrote: > > Actually, I expect the best way to migrate these tests is to rework > > the individual test_* tests to use PyUnit instead of the current > > code. This will be tedious but will result in a much more > > mamanagable test package. > > That would certainly be best, though it's a *big* job! You > might have fun getting everyone else to re-write their tests. Well, every finite job can be broken down in a number of reasonable chunks, can't it? If somebody gives me the rights I can convert some code myself, but it might be beneficial to have some guideline to get a consistent test suite implementation. Maybe that's the real issue? > I've come across a couple of pieces of code that wrap > doctest tests into PyUnit test cases -- they might > be helpful for Tim's 'doctest'-based regression tests. This sounds interesting. At ReportLab we thought about a couple of different situations where you want to wrap existing tests and/or non-Python apps using PyUnit. This could be stuff in the if __name__ == '__main__': section of Python modules, but also compiled executables, Python or not. If somebody has any thoughts/experience in doing this, please share it with us! Thanks! Regards, Dinu |