A simpler test framework?
John Arbash Meinel
john at arbash-meinel.com
Tue Jul 14 15:39:49 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
...
> 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
> "
>
> etc.
>
> Aaron
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
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpcmLUACgkQJdeBCYSNAANJSgCfZFrrIq+3NstPW6/DQwW5aErw
BAUAoMAWoYRejADh5LyQDv674yK9mOK9
=DUzu
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list