A simpler test framework?

Richard Wilbur richard.wilbur at gmail.com
Tue Jul 14 18:20:11 BST 2009


On Tue, 2009-07-14 at 09:39 -0500, John Arbash Meinel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> ...
> Well with a "run_bzr()" test you can check that with:
> 
> "Apply change? [yNfq?]y"
> "\r                     "
> "\rApply 1 change(s)y"
> "\r                "
> 
> Which also has the advantage of making it clear that you want to test
> that it *does* hide its previous message.
> 
> (Note that I added some \r because they seemed appropriate.)
> 
> John
> =:->
[...]
This looks like a very nice framework for smoketests and UI-testing.  I
expect it would apply nicely to a lot of the bugs labelled 'easy'.

Short of some nice documentation on the unit test API, my guess is that
the easiest way to learn the unit test API for more involved problems is
still to read other tests that use mechanisms you need.

I haven't checked the wiki recently.  Has someone already written this?
I expect a short introductory tutorial along with full unit test API
documentation would suffice.

Richard




More information about the bazaar mailing list