From: a2batic Date: Wed, 6 Jun 2018 19:40:40 +0000 (+0530) Subject: mgr/dashboard: Adds unit test coverage report X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1042%2Fhead;p=ceph-build.git mgr/dashboard: Adds unit test coverage report Enable plugin 'Cobertura' to generate code coverage report, for every PR for ceph-dashboard frontend unit test. Cobertura jenkins plugin: https://wiki.jenkins.io/display/JENKINS/Cobertura+Plugin Fixes: http://tracker.ceph.com/issues/24377 Signed-off-by: Kanika Murarka --- diff --git a/ceph-pull-requests/config/definitions/ceph-pull-requests.yml b/ceph-pull-requests/config/definitions/ceph-pull-requests.yml index b480f60e..89493727 100644 --- a/ceph-pull-requests/config/definitions/ceph-pull-requests.yml +++ b/ceph-pull-requests/config/definitions/ceph-pull-requests.yml @@ -62,3 +62,19 @@ - ABORTED build-steps: - shell: "sudo reboot" + - cobertura: + report-file: "src/pybind/mgr/dashboard/frontend/coverage/cobertura-coverage.xml" + only-stable: "true" + health-auto-update: "true" + stability-auto-update: "true" + zoom-coverage-chart: "true" + source-encoding: "Big5" + targets: + - files: + healthy: 10 + unhealthy: 20 + failing: 30 + - method: + healthy: 10 + unhealthy: 20 + failing: 30