From bf7c5908fbe46d322bb1842ff659206d8fdd3583 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Thu, 2 Jun 2016 08:25:14 -0600 Subject: [PATCH] Output JS Karma test coverage reports to ./cover/ Per CTI direction (see bug filing), this patch moves the JS Karma test coverage reports to ./cover/ so they may be collected in the gate for archiving. The two runs each have their own directory so they don't overlap/conflict. Change-Id: I0b1536c115a516f4b6ab80b5ebab5337b308c210 Closes-Bug: 1588389 --- .gitignore | 1 + horizon/karma.conf.js | 2 +- openstack_dashboard/karma.conf.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f464981a3b..1194969b12 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ .coverage* .noseids .DS_STORE +/cover coverage.xml coverage-karma nosetests.xml diff --git a/horizon/karma.conf.js b/horizon/karma.conf.js index 833fa7e9b5..1f1a508c19 100644 --- a/horizon/karma.conf.js +++ b/horizon/karma.conf.js @@ -138,7 +138,7 @@ module.exports = function (config) { coverageReporter: { type: 'html', - dir: '../coverage-karma/' + dir: '../../cover/horizon' }, // Coverage threshold values. diff --git a/openstack_dashboard/karma.conf.js b/openstack_dashboard/karma.conf.js index 861c536b2e..7d1cb7af9f 100644 --- a/openstack_dashboard/karma.conf.js +++ b/openstack_dashboard/karma.conf.js @@ -184,7 +184,7 @@ module.exports = function (config) { // Places coverage report in HTML format in the subdirectory below. coverageReporter: { type: 'html', - dir: './coverage-karma/' + dir: '../cover/openstack_dashboard' }, // Coverage threshold values.