[openstack-dev] Nova Coverage with Tempest
Matthew Treinish
treinish at linux.vnet.ibm.com
Tue Oct 23 18:52:38 UTC 2012
Hello Everyone,
I've posted a WIP to gerrit for an API extension that will turn on coverage
reporting for nova:
https://review.openstack.org/14468
and the tempest side for using it:
https://review.openstack.org/14530
The idea was for tempest, or another external test system, to be able to enable
coverage reporting within nova when the tests are running to see which code
paths the tests are actually exercising. This is just the first approach I
thought of, and I'm sure that there are other ways(possibly better too) to
accomplish the goal.
The extension just has a few simple actions to start and stop coverage
collection and then one to generate the coverage report as a file, or return it
back on the wire. The rationale for using an extension was that the coverage
collection could be started just before the tests are run and stopped
immediately after.
I'm not at all attached to this method, but I figured it would be better to
back the discussion up with some draft code then having it be strictly
hypothetical.
Let me know what you think.
Thanks,
Matt Treinish
More information about the OpenStack-dev
mailing list