This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients brett.cannon, eric.araujo, r.david.murray, sandro.tosi
Date 2011-01-11.01:24:08
SpamBayes Score 2.3231417e-13
Marked as misclassified No
Message-id <1294709050.22.0.0522222691463.issue10848@psf.upfronthosting.co.za>
In-reply-to
Content
Testing regrtest is distinctly non-trivial, since options have interactions (some of the somewhat unobvious).  Ideally we'd refactor the code so that we could point it at a test test-directory so we could write some automated tests for it :)  But if you are going that far you might as well rewrite it.

This is, I suspect, why nobody has yet done this conversion.

My best suggestion if you really want to go ahead is to go through each option individually, with and without command line arguments, and test how it currently behaves and make good notes.  Anything that doesn't make sense, ask on (#)python-dev.  And then...build a matrix and test each option in combination with each other option, again keeping notes.  Which is something that has probably never been done, and will doubtless reveal some interesting bugs.  You might be able to automate some tests using doctest and subprocess.

I'm not sure about that easy tag.  This could easily be more than a one day project.  I suspect you will find your fingers itching to refactor more than just the argument parsing code.  You should probably resist that urge insofar as possible :)
History
Date User Action Args
2011-01-11 01:24:10r.david.murraysetrecipients: + r.david.murray, brett.cannon, eric.araujo, sandro.tosi
2011-01-11 01:24:10r.david.murraysetmessageid: <1294709050.22.0.0522222691463.issue10848@psf.upfronthosting.co.za>
2011-01-11 01:24:08r.david.murraylinkissue10848 messages
2011-01-11 01:24:08r.david.murraycreate