tests for plugins
John A Meinel
john at arbash-meinel.com
Thu Nov 17 23:11:12 GMT 2005
Jamie Wilkinson wrote:
> How would one go about using bzr's selftest infrastructure in plugins? Just
> a short bit of pseudocode would suffice as an answer :)
>
> Thanks
>
>
If you have a plugin setup like this:
myplugin/
__init__.py
otherfiles.py
Then you add a function named test_suite into __init__.py
You can look at my plugin here:
http://bzr.arbash-meinel.com/plugins/update-mirrors.py
I moved the actual test code into a separate file, which only gets
loaded if test_suite() is called.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051117/ef173704/attachment.pgp
More information about the bazaar
mailing list