From 47f7f54437f9aeb77fb5627f01832276840bd15c Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Fri, 5 Feb 2016 07:44:44 -0700 Subject: [PATCH] Updating JS unit test coverage threshold This patch updates the JS unit test coverage threshold. As we've added code we've increased the coverage. To keep new code well-covered, we should increase the threshold so new code doesn't decrease the overall coverage. The rule of thumb is to keep it at the highest whole percentage point that greater than .5% of a difference from the current coverage. Change-Id: I89e18841b4e9ba4a2cbd49ee222d3234e9d26c88 --- horizon/karma.conf.js | 8 ++++---- openstack_dashboard/karma.conf.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/horizon/karma.conf.js b/horizon/karma.conf.js index 6b6c9db933..e4ed8863a6 100644 --- a/horizon/karma.conf.js +++ b/horizon/karma.conf.js @@ -147,10 +147,10 @@ module.exports = function (config) { // Coverage threshold values. thresholdReporter: { - statements: 91, // target 100 - branches: 81, // target 100 - functions: 90, // target 100 - lines: 92 // target 100 + statements: 93, // target 100 + branches: 84, // target 100 + functions: 91, // target 100 + lines: 93 // target 100 } }); }; diff --git a/openstack_dashboard/karma.conf.js b/openstack_dashboard/karma.conf.js index ce51e320b9..6771ddcde3 100644 --- a/openstack_dashboard/karma.conf.js +++ b/openstack_dashboard/karma.conf.js @@ -192,10 +192,10 @@ module.exports = function (config) { // Coverage threshold values. thresholdReporter: { - statements: 95, // target 100 - branches: 92, // target 100 - functions: 94, // target 100 - lines: 95 // target 100 + statements: 96, // target 100 + branches: 93, // target 100 + functions: 95, // target 100 + lines: 96 // target 100 } }); };