sforkowany z mirror/soapbox
Merge branch 'gitlab-coverage' into 'develop'
GitLab CI: display pretty test coverage See merge request soapbox-pub/soapbox-fe!1526chats-fixes^2
commit
f211792085
|
@ -8,6 +8,7 @@
|
||||||
/deploy.sh
|
/deploy.sh
|
||||||
/.vs/
|
/.vs/
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
/junit.xml
|
||||||
|
|
||||||
/static/
|
/static/
|
||||||
/static-test/
|
/static-test/
|
||||||
|
|
|
@ -56,7 +56,14 @@ jest:
|
||||||
- "jest.config.js"
|
- "jest.config.js"
|
||||||
- "package.json"
|
- "package.json"
|
||||||
- "yarn.lock"
|
- "yarn.lock"
|
||||||
|
- ".gitlab-ci.yml"
|
||||||
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
|
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
junit: junit.xml
|
||||||
|
coverage_report:
|
||||||
|
coverage_format: cobertura
|
||||||
|
path: .coverage/cobertura-coverage.xml
|
||||||
|
|
||||||
nginx-test:
|
nginx-test:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
|
@ -28,6 +28,7 @@ module.exports = {
|
||||||
],
|
],
|
||||||
'coverageDirectory': '<rootDir>/.coverage/',
|
'coverageDirectory': '<rootDir>/.coverage/',
|
||||||
'coverageReporters': ['html', 'text', 'text-summary', 'cobertura'],
|
'coverageReporters': ['html', 'text', 'text-summary', 'cobertura'],
|
||||||
|
'reporters': ['jest-junit'],
|
||||||
'moduleDirectories': [
|
'moduleDirectories': [
|
||||||
'<rootDir>/node_modules',
|
'<rootDir>/node_modules',
|
||||||
'<rootDir>/app',
|
'<rootDir>/app',
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
"jsdoc": "npx jsdoc -c jsdoc.conf.js",
|
"jsdoc": "npx jsdoc -c jsdoc.conf.js",
|
||||||
"manage:translations": "node ./webpack/translationRunner.js",
|
"manage:translations": "node ./webpack/translationRunner.js",
|
||||||
"test": "npx cross-env NODE_ENV=test npx jest",
|
"test": "npx cross-env NODE_ENV=test npx jest",
|
||||||
"test:coverage": "npx jest --coverage",
|
"test:coverage": "${npm_execpath} run test --coverage",
|
||||||
"test:all": "${npm_execpath} run test:coverage && ${npm_execpath} run lint",
|
"test:all": "${npm_execpath} run test:coverage && ${npm_execpath} run lint",
|
||||||
"lint": "${npm_execpath} run lint:js && ${npm_execpath} run lint:sass",
|
"lint": "${npm_execpath} run lint:js && ${npm_execpath} run lint:sass",
|
||||||
"lint:js": "npx eslint --ext .js,.jsx,.ts,.tsx . --cache",
|
"lint:js": "npx eslint --ext .js,.jsx,.ts,.tsx . --cache",
|
||||||
|
@ -219,6 +219,7 @@
|
||||||
"fake-indexeddb": "^3.1.7",
|
"fake-indexeddb": "^3.1.7",
|
||||||
"husky": "^7.0.2",
|
"husky": "^7.0.2",
|
||||||
"jest": "^27.5.1",
|
"jest": "^27.5.1",
|
||||||
|
"jest-junit": "^13.2.0",
|
||||||
"lint-staged": ">=10",
|
"lint-staged": ">=10",
|
||||||
"raf": "^3.4.1",
|
"raf": "^3.4.1",
|
||||||
"react-intl-translations-manager": "^5.0.3",
|
"react-intl-translations-manager": "^5.0.3",
|
||||||
|
|
15
yarn.lock
15
yarn.lock
|
@ -6778,6 +6778,16 @@ jest-jasmine2@^27.5.1:
|
||||||
pretty-format "^27.5.1"
|
pretty-format "^27.5.1"
|
||||||
throat "^6.0.1"
|
throat "^6.0.1"
|
||||||
|
|
||||||
|
jest-junit@^13.2.0:
|
||||||
|
version "13.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-13.2.0.tgz#66eeb86429aafac8c1745a70f44ace185aacb943"
|
||||||
|
integrity sha512-B0XNlotl1rdsvFZkFfoa19mc634+rrd8E4Sskb92Bb8MmSXeWV9XJGUyctunZS1W410uAxcyYuPUGVnbcOH8cg==
|
||||||
|
dependencies:
|
||||||
|
mkdirp "^1.0.4"
|
||||||
|
strip-ansi "^6.0.1"
|
||||||
|
uuid "^8.3.2"
|
||||||
|
xml "^1.0.1"
|
||||||
|
|
||||||
jest-leak-detector@^27.5.1:
|
jest-leak-detector@^27.5.1:
|
||||||
version "27.5.1"
|
version "27.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz#6ec9d54c3579dd6e3e66d70e3498adf80fde3fb8"
|
resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz#6ec9d54c3579dd6e3e66d70e3498adf80fde3fb8"
|
||||||
|
@ -11312,6 +11322,11 @@ xml-name-validator@^3.0.0:
|
||||||
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a"
|
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a"
|
||||||
integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==
|
integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==
|
||||||
|
|
||||||
|
xml@^1.0.1:
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5"
|
||||||
|
integrity sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==
|
||||||
|
|
||||||
xmlchars@^2.2.0:
|
xmlchars@^2.2.0:
|
||||||
version "2.2.0"
|
version "2.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb"
|
resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb"
|
||||||
|
|
Ładowanie…
Reference in New Issue