]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
mgr/dashboard: Adds unit test coverage report 1042/head
authora2batic <murarkakanika@gmail.com>
Wed, 6 Jun 2018 19:40:40 +0000 (01:10 +0530)
committera2batic <kmurarka@redhat.com>
Thu, 28 Jun 2018 06:33:31 +0000 (12:03 +0530)
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 <kmurarka@redhat.com>
ceph-pull-requests/config/definitions/ceph-pull-requests.yml

index b480f60e0f3f372ce55da2b5aa0b6dbe8dab28a8..8949372737e1e89a1d45eb6015803858e45547b4 100644 (file)
                   - 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