Merge pull request #574 from Human-Connection/2019/kw19/codecov

2019/kw19/codecov
This commit is contained in:
Ulf Gebhardt 2019-05-08 23:55:20 +02:00 committed by GitHub
commit d6f423d845
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 17 deletions

View File

@ -114,8 +114,8 @@ coverage:
paths:
- webapp/ # only include coverage in "webapp/" folder
#patch:
# default:
patch:
default: false
# against: parent
# target: 80%
# branches: null
@ -155,9 +155,15 @@ coverage:
# - "old_path::new_path"
comment:
layout: header, diff, trends, uncovered, reach, files, tree, changes, sunburst, flags
branches: *
# layout options are quite limited in v4.x - there have been way more options in v1.0
layout: reach, diff, flags, files # mostly old options: header, diff, uncovered, reach, files, tree, changes, sunburst, flags
behavior: new # default = posts once then update, posts new if delete
# once = post once then updates
# new = delete old, post new
# spammy = post new
# once = post once then updates
# new = delete old, post new
# spammy = post new
require_changes: false # if true: only post the comment if coverage changes
require_base: no # [yes :: must have a base report to post]
require_head: no # [yes :: must have a head report to post]
branches: null # branch names that can post comment
flags: null
paths: null

View File

@ -27,7 +27,17 @@
"jest": {
"verbose": true,
"collectCoverage": true,
"coverageReporters": ["text", "lcov"],
"collectCoverageFrom": [
"**/*.js",
"!**/node_modules/**",
"!**/test/**",
"!**/dist/**",
"!**/src/**/?(*.)+(spec|test).js?(x)"
],
"coverageReporters": [
"text",
"lcov"
],
"testMatch": [
"**/src/**/?(*.)+(spec|test).js?(x)"
]
@ -96,4 +106,4 @@
"nodemon": "~1.19.0",
"supertest": "~4.0.2"
}
}
}

View File

@ -1,4 +1,7 @@
{
"plugins": [
"@babel/plugin-syntax-dynamic-import"
],
"presets": [
[
"@babel/preset-env",
@ -21,4 +24,4 @@
]
}
}
}
}

View File

@ -18,20 +18,32 @@
"jest": {
"verbose": true,
"collectCoverage": true,
"coverageReporters": ["text", "lcov"],
"moduleFileExtensions": [
"js",
"json",
"vue"
"collectCoverageFrom": [
"**/*.{js,vue}",
"!**/node_modules/**",
"!**/.nuxt/**",
"!**/?(*.)+(spec|test).js?(x)"
],
"coverageReporters": [
"text",
"lcov"
],
"transform": {
".*\\.(vue)$": "vue-jest",
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
},
"moduleFileExtensions": [
"js",
"json",
"vue"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1",
"^~/(.*)$": "<rootDir>/$1"
}
},
"testMatch": [
"**/?(*.)+(spec|test).js?(x)"
]
},
"dependencies": {
"@human-connection/styleguide": "0.5.15",
@ -63,6 +75,7 @@
},
"devDependencies": {
"@babel/core": "~7.4.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "~7.4.4",
"@vue/cli-shared-utils": "~3.7.0",
"@vue/eslint-config-prettier": "~4.0.1",
@ -86,4 +99,4 @@
"vue-jest": "~3.0.4",
"vue-svg-loader": "~0.12.0"
}
}
}