[openstack-dev] [Sahara] [QA] [tests coverage] Can we add CI job to control the unit tests coverage?

Timur Nurlygayanov tnurlygayanov at mirantis.com
Thu Jul 2 17:15:05 UTC 2015


Hi all,

I suggest to add CI job which will check the unit tests coverage for Sahara
repository and will set -1 for commits with new code and without unit tests
(if we have some degradation of tests coverage).
This job successfully works for Rally project and it helps to organize the
right code development process when developers write new unit tests for new
functionality.

we can just copy this job from Rally and start to use it for Sahara:
Coverage control script:
https://github.com/openstack/rally/blob/master/tests/ci/cover.sh
Configuration file for coverage plugin (to exclude code which shouldn't be
affected): https://github.com/openstack/rally/blob/master/.coveragerc
Example of job in infra repository:
https://github.com/openstack-infra/project-config/blob/master/zuul/layout.yaml#L4088

I expect that it will help to increase the tests coverage by unit tests.

Do we have any objections?

-- 

Timur,
Senior QA Engineer
OpenStack Projects
Mirantis Inc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150702/da578b91/attachment.html>


More information about the OpenStack-dev mailing list