From d03db5cd258e762df0ef0608f46b0d695f084ed3 Mon Sep 17 00:00:00 2001 From: a2batic Date: Thu, 7 Jun 2018 01:10:40 +0530 Subject: [PATCH] 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 --- .../config/definitions/ceph-pull-requests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.39.5