[Buildbot-devel] Do we need extra test for simple or other plugin for mq
Dustin J. Mitchell
dustin at v.igoro.us
Wed Aug 6 15:17:52 UTC 2014
The test_mq.py script contains common tests that all plugins should
pass. It has a class for the simple plugin (TestSimpleMQ), and should
have an additional class added for any additional plugins.
There should be a test_mq_XXX.py for each XXX plugin to unit test any
plugin-specific methods. The simple plugin doesn't have any
plugin-specific methods, so it has nothing to test.
Ideally, test_mq_XXX.py should be able to run even if the required
libraries and servers (so, libamqp and rabbitmq in yoru case) are not
available, while test_mq.py can skip tests when those libraries and
servers are not available. As a concrete example, test_mq_amqp.py
would be a great place to test your formatKey method, which can be
tested even if libamqp is not installed.
More information about the devel