diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3857c410..30ef05f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,9 +60,14 @@ unit: script: - npm run check-icons - npm run test -- --watch=false --no-progress --code-coverage + coverage: '/Statements[^:]*\:[^:]*\s+([\d\.]+)%/' artifacts: paths: - - coverage + - coverage + reports: + coverage_report: + coverage_format: cobertura + path: coverage/cobertura-coverage.xml # Disabled until redesign is settled # diff --git a/karma.conf.js b/karma.conf.js index 7b8121a9..c3a8cc70 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -32,8 +32,8 @@ module.exports = function (config) { clearContext: false // leave Jasmine Spec Runner output visible in browser }, coverageIstanbulReporter: { - dir: require('path').join(__dirname, '../coverage'), - reports: ['html', 'lcovonly', 'text-summary'], + dir: require('path').join(__dirname, './coverage'), + reports: ['html', 'lcovonly', 'text-summary', 'cobertura'], fixWebpackSourcePaths: true }, reporters: config.buildWebpack.options.codeCoverage ? ['mocha', 'coverage-istanbul'] : ['mocha'],