A simpler test framework?

Aaron Bentley aaron at aaronbentley.com
Fri Jul 17 06:25:07 BST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
> 2009/7/15 Aaron Bentley <aaron at aaronbentley.com>:

> (Did you know example.com is the officially sanctioned example domain
> name? <http://en.wikipedia.org/wiki/example.com>)

I did, actually.  I use it and example.org in the test suite when I need
a domain but don't need to access it.

> I think in Shelver this should be abstracted a bit into a method
> called on the UIFactory that asks for a multiple-choice response.
> Then the UIFactory can arrange that when run in this context, it has
> just
> 
>   Apply change? [yNfq] y
> 
> I think that's clearly the most desirable thing as far as testable
> documentation or easy approachability

Sure, but it's not what you'd want if you were implementing a GUI.
Anyone who implements those prompts with modal dialogs is evil.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpgCy8ACgkQ0F+nu1YWqI3sLQCfQ7dls4MzlpJze+ymrmCu9LTn
O/kAn2FvAp3kl5Ym7joNUVYsbfkwPK/R
=bDoc
-----END PGP SIGNATURE-----



More information about the bazaar mailing list