[TIP] Unittest Changes
tarjei at nu.no
Mon Jul 21 07:33:14 PDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
> Bazaar's test suite mainly uses this hook to build parameterised TestCases, i.e.
> to run all the transport_implementations tests against all the Transport
> subclasses. See the load_tests function in
This got me thinking. Are TestNG style dataproviders on the menu?
> for a real example. An advantage of load_tests over test_suite AIUI is that it
> allows bzrlib's test loader to filter test cases before invoking load_tests
> (e.g. with a regex passed on the “bzr selftest” command line), which can save
> significant time if you are running just a subset of the full suite. With
> test_suite() you have no choice but to filter afterwards, by which time you may
> have instantiated hundreds of test case instances that you'll never run.
> Ideally one of these existing protocols would become standardised. :)
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the testing-in-python