1
0
mirror of https://github.com/kremalicious/blowfish.git synced 2024-12-27 15:17:51 +01:00

fix coverage reporting

This commit is contained in:
Matthias Kretschmann 2020-02-08 23:23:46 +01:00
parent fe84386ff2
commit 7ef9200086
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 13 additions and 5 deletions

View File

@ -22,10 +22,11 @@ before_script:
script:
- npm test || travis_terminate 1
- ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.json src/renderer/coverage/lcov.info
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi
- npm run dist
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"

View File

@ -5,8 +5,8 @@
"description": "🐡 Simple Electron-based desktop app to retrieve and display your total Ocean Token balances.",
"main": "./src/main/index.js",
"scripts": {
"test": "npm run lint && jest --coverage",
"test:watch": "jest --coverage --watch",
"test": "npm run lint && jest",
"test:watch": "jest --watch",
"lint": "eslint --ignore-path .gitignore ./src/**/*.{js,jsx} && stylelint --ignore-path .gitignore ./src/**/*.{css,scss}",
"start": "webpack-dev-server --hot --host 0.0.0.0 --config=./webpack.dev.config.js",
"build": "cross-env NODE_ENV=production webpack --config webpack.common.config.js",
@ -69,7 +69,7 @@
"react-pose": "^4.0.10",
"release-it": "^12.4.3",
"style-loader": "^1.1.3",
"stylelint": "^12.0.0",
"stylelint": "^13.1.0",
"stylelint-config-css-modules": "^2.1.0",
"stylelint-config-standard": "^19.0.0",
"webpack": "^4.41.5",
@ -141,6 +141,13 @@
"setupFilesAfterEnv": [
"<rootDir>/jest/setup-test-env.js"
],
"coverageDirectory": "../../coverage/",
"collectCoverage": true,
"collectCoverageFrom": [
"<rootDir>/**/*.{js,jsx}",
"!<rootDir>/jest/**/*.{js,jsx}",
"!**/node_modules/**"
],
"runner": "@jest-runner/electron",
"testEnvironment": "@jest-runner/electron/environment"
}