[RFC] Multipart support for _urllib_

Martin Pool mbp at canonical.com
Wed Jun 21 06:50:32 BST 2006


On 21 Jun 2006, Michael Ellerman <michael at ellerman.id.au> wrote:
> On 6/21/06, Martin Pool <mbp at canonical.com> wrote:

> >> Well, that shouldn't be too bad. How much testing do you want in place
> >> before it is considered worthy of merging? (I would like to get some
> >> testing as well, but I have some other major focuses this week, and
> >> would like to see it merged soonish).
> >
> >Well, what I would *really* like is to encourage bzr developers to get
> >to into the habit of test-driven development; writing things as you go
> >along.  One thing I've learnt is that if you leave tests until later it
> >just gets harder to add them.
> 
> Oh but I did use TDD, the test was "can I branch bzr.dev" ;)

Right!  So the thing is to ask "now, rather than making this a once-off
manual test, how can I make it into a reproducible test."  There is a
knack to it which I am still learning, and in some cases the
infrastructure is all there, but when it does work it pays off well.

> Point taken, and I actually did look into writing tests first, but I
> really don't grok the testing infrastructure very well, and then
> people started getting impatient so I just got it working. I don't
> expect you to merge it without tests.

Well, I don't want to have it languish unmerged and untested either.  So
what can we do to help you grok the infrastructure or the right style of
test to write?  (Maybe something to go into HACKING?)

-- 
Martin




More information about the bazaar mailing list