From 4f7a5591ae8dd61b25af7f746f20d8f058aa991c Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Thu, 24 May 2018 13:55:14 -0700 Subject: [PATCH] Set a minimum coverage threshold for javascript This patch sets a minimum test coverage for the javascript code in octavia-dashboard. We are currently at 100% coverage, so this patch sets 100% as the minimum. Change-Id: Ieeeec6273cd371a30b56370972711af45fadec30 --- octavia_dashboard/karma.conf.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/octavia_dashboard/karma.conf.js b/octavia_dashboard/karma.conf.js index 0fd2e8c6..0dd33789 100644 --- a/octavia_dashboard/karma.conf.js +++ b/octavia_dashboard/karma.conf.js @@ -141,7 +141,15 @@ module.exports = function (config) { coverageReporter: { type: 'html', dir: '../cover/', - subdir: '.' + subdir: '.', + check: { + global: { + statements: 100, + branches: 100, + functions: 100, + lines: 100 + } + } }, // Coverage threshold values.