[TIP] Unittest Changes

tarjei tarjei at nu.no
Mon Jul 21 07:33:14 PDT 2008


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

Hi Again,
> 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?


kind regards,
Tarjei

> <http://bazaar.launchpad.net/~bzr/bzr/trunk/annotate/head:/bzrlib/tests/test_transport_implementations.py>
> 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. :)
> 
> -Andrew.
> 
> 
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python

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

iD8DBQFIhJ4qYVRKCnSvzfIRAhKLAKCgO3viCo+0AB6ooyZevj+80CTXUQCfWR69
Dc+22XtJQWWaplLle8IpcaU=
=2mNC
-----END PGP SIGNATURE-----



More information about the testing-in-python mailing list