Plugin test suite runner

John Arbash Meinel john at arbash-meinel.com
Thu Nov 8 23:17:56 GMT 2007


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

Robert Collins wrote:
...

> 
> It's nice, but at least for my plugins it doesn't run all the tests :(.
> 
> e.g. HgRepositoryFormat tests don't run.
> 
> -Rob

That could be considered a bug in your plugins test_suite(). Considering it
isn't returning all of the tests that should be run to test your plugin. :)

It isn't perfect. (Hence why I wasn't trying to get it merged into core.) But
it makes a *huge* difference for me. And it is better than writing a separate
'test-foo' command for every plugin that I write.

The best idea I've see in Martin's concept for running everything but the last
step of building the test objects (so import the files and scan them). That
gives the most accurate results. But I'm not really sure how much time would be
saved.

I actually wanted my automatic loading so I could do "bzr selftest --load-only
foo" and have it ignore all files that do not match foo.

That would probably still not work for what you might want. But it would really
make my life better on my laptop. 10s just to do --list-only means I don't run
the test suite. (Most of my plugin test suites completely finish within 10s.)

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHM5kkJdeBCYSNAAMRAjxbAKCBNJo4d5Zd9NPiprN1RNdLkyEyrQCffRdD
Nktdn9zWcPTh8PwDOPYpxRY=
=jcMo
-----END PGP SIGNATURE-----



More information about the bazaar mailing list