A simpler test framework?
John Arbash Meinel
john at arbash-meinel.com
Tue Jul 14 15:39:49 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
> Fully agreed. Testing this interactive stuff is pretty hard with our
> current framework, but I'm not sure this would help that case. Shelver
> hides its prompts after they're answered, so its output is something like:
> "Apply change? [yNfq?]y\r Apply 1 change(s)y\r
Well with a "run_bzr()" test you can check that with:
"Apply change? [yNfq?]y"
"\rApply 1 change(s)y"
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.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar