mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-11 05:52:28 +03:00
better coverage tooling
This commit is contained in:
+7
-3
@@ -9,10 +9,13 @@ export default (config) => {
|
||||
reporters: ['mocha', 'coverage'],
|
||||
files: ['test/index.js'],
|
||||
preprocessors: {
|
||||
'test/index.js': ['webpack']
|
||||
'test/index.js': ['webpack', 'sourcemap']
|
||||
},
|
||||
coverageReporter: {
|
||||
type: 'lcov',
|
||||
reporters: [
|
||||
{ type: 'lcov' },
|
||||
{ type: 'text' }
|
||||
],
|
||||
includeAllSources: true,
|
||||
dir: 'coverage',
|
||||
subdir: '.'
|
||||
@@ -22,7 +25,8 @@ export default (config) => {
|
||||
noInfo: true
|
||||
},
|
||||
mochaReporter: {
|
||||
showDiff: true
|
||||
showDiff: true,
|
||||
output: 'full'
|
||||
},
|
||||
singleRun: true
|
||||
})
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
"karma-mocha": "^1.2.0",
|
||||
"karma-mocha-reporter": "^2.2.0",
|
||||
"karma-phantomjs-launcher": "^1.0.2",
|
||||
"karma-sourcemap-loader": "^0.3.7",
|
||||
"karma-webpack": "^1.8.0",
|
||||
"mocha": "^3.1.2",
|
||||
"phantomjs-prebuilt": "^2.1.13",
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
const testsContext = require.context('.', true, /\.spec$/)
|
||||
const srcContext = require.context('../src', true, /\.js$/)
|
||||
testsContext.keys().forEach(testsContext)
|
||||
srcContext.keys().forEach(srcContext)
|
||||
|
||||
@@ -3007,6 +3007,12 @@ karma-phantomjs-launcher@^1.0.2:
|
||||
lodash "^4.0.1"
|
||||
phantomjs-prebuilt "^2.1.7"
|
||||
|
||||
karma-sourcemap-loader:
|
||||
version "0.3.7"
|
||||
resolved "https://registry.yarnpkg.com/karma-sourcemap-loader/-/karma-sourcemap-loader-0.3.7.tgz#91322c77f8f13d46fed062b042e1009d4c4505d8"
|
||||
dependencies:
|
||||
graceful-fs "^4.1.2"
|
||||
|
||||
karma-webpack@^1.8.0:
|
||||
version "1.8.0"
|
||||
resolved "https://registry.yarnpkg.com/karma-webpack/-/karma-webpack-1.8.0.tgz#340c7999eb3745b47becab47d0d304dac2c55257"
|
||||
|
||||
Reference in New Issue
Block a user