Skip to content

Commit

Permalink
[ADF-3790] Fix core coverage (#4011)
Browse files Browse the repository at this point in the history
* Fix core coverage

* Fix karma path
  • Loading branch information
mauriziovitale authored and eromano committed Dec 11, 2018
1 parent 242884d commit 276e40e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion angular.json
Expand Up @@ -533,7 +533,7 @@
},
"core": {
"root": "lib/core",
"sourceRoot": "lib/core/src",
"sourceRoot": "lib/core",
"projectType": "library",
"prefix": "adf",
"architect": {
Expand Down
14 changes: 4 additions & 10 deletions lib/core/karma.conf.js
Expand Up @@ -27,10 +27,8 @@ module.exports = function (config) {
{pattern: 'node_modules/moment/min/moment.min.js', included: true, watched: false},

{pattern: 'lib/core/i18n/**/en.json', included: false, served: true, watched: false},

{pattern: 'lib/core/**/*.ts', included: false, served: true, watched: false},
{pattern: 'lib/core/assets/**/*.svg', included: false, served: true, watched: false},

{pattern: 'lib/config/app.config.json', included: false, served: true, watched: false},
{pattern: 'lib/core/viewer/assets/fake-test-file.pdf', included: false, served: true, watched: false},
{pattern: 'lib/core/viewer/assets/fake-test-file.txt', included: false, served: true, watched: false},
Expand Down Expand Up @@ -71,18 +69,11 @@ module.exports = function (config) {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: './lib/coverage/core/',
dir: require('path').join(__dirname, '../coverage/core'),
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true
},

// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,

colors: true,

autoWatch: false,

browserDisconnectTimeout: 200000,
browserNoActivityTimeout: 2400000,
captureTimeout: 1200000,
Expand All @@ -101,6 +92,9 @@ module.exports = function (config) {

reporters: ['mocha', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
Expand Down

0 comments on commit 276e40e

Please sign in to comment.