Try once relying on codecov yaml to split w/ flags

This commit is contained in:
dannyrb 2019-07-18 12:43:03 -04:00
parent 31357ea9b5
commit 253620650b
7 changed files with 15 additions and 5 deletions

View File

@ -49,7 +49,7 @@ jobs:
# https://www.viget.com/articles/using-junit-on-circleci-2-0-with-jest-and-eslint/
- run:
name: "JavaScript Test Suite"
command: yarn run test:unit:ci
command: yarn run test:unit
environment:
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"

View File

@ -17,11 +17,20 @@
## Commands
### Global
| Commands | | |
| -------------- | --- | ----------------------------------------------------- |
| `test:unit` | | Jest multi-project test runner; overall coverage |
| `test:unit:ci` | | Runs tests in parallel. Reports coverage per project. |
### Local
| Commands | | |
| -------------- | --- | ------------------------------------------------- |
| `test:unit` | | Runs tests while watching for changes |
| `test:unit:ci` | | Runs tests, collects coverage, reports to codecov |
## Developing
The OHIF Medical Image Viewing Platform is maintained as a

View File

@ -15,7 +15,7 @@
"start": "lerna run lerna:start --parallel",
"build": "lerna run lerna:build --parallel",
"test:ci": "",
"test:unit": "jest --collectCoverage",
"test:unit": "jest --ci --runInBand --collectCoverage && codecov",
"test:unit:ci": "lerna run test:unit:ci --parallel",
"test:e2e": "",
"test:e2e:ci": "lerna run lerna:test:e2e --parallel",

View File

@ -15,12 +15,12 @@
"npm": ">=5"
},
"scripts": {
"test:unit": "jest --watch",
"test:unit:ci": "jest --ci --runInBand --collectCoverage && codecov -F core",
"build": "rollup -c",
"lerna:build": "webpack --config config/webpack.prod.js -w -d",
"dev": "jest --watch",
"start": "rollup -c -w",
"test": "jest",
"lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}",
"prepublishOnly": "npm run build"
},

View File

@ -18,6 +18,7 @@
"access": "public"
},
"scripts": {
"test:unit": "echo 'platform/i18n: missing unit tests'",
"test:unit:ci": "echo 'platform/i18n: missing unit tests'",
"build": "rollup -c",
"lerna:build": "webpack --config config/webpack.prod.js -w -d",

View File

@ -15,9 +15,9 @@
"dist"
],
"scripts": {
"test:unit": "jest --watch",
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests && codecov -F ui",
"dev": "docz dev",
"test:watch": "react-scripts test --env=jsdom --transformIgnorePatterns \"node_modules/(?!react-dnd)/\"",
"lerna:build": "webpack --config config/webpack.prod.js -w -d",
"build": "rollup -c",
"start": "rollup -c -w",

View File

@ -14,6 +14,7 @@
"proxy": "http://localhost:8042",
"scripts": {
"lerna:start": "cross-env NODE_ENV=development webpack-dev-server --config config/webpack.dev.js --mode development -w -d",
"test:unit": "jest --watch",
"test:unit:ci": "jest --ci --runInBand --collectCoverage && codecov -F viewer",
"dev": "yarn run preBuild && react-scripts start",
"dev:debug": "react-scripts start",
@ -21,7 +22,6 @@
"build:package:ci": "yarn run preBuild && node --max-old-space-size=4096 node_modules/rollup/bin/rollup -c",
"build:web": "yarn run preBuild && react-scripts --max_old_space_size=4096 build",
"build:demo:ci": "yarn run preBuild && cross-env PUBLIC_URL=/ REACT_APP_CONFIG=config/demo.js react-scripts --max_old_space_size=4096 build",
"test:unit": "jest",
"test:e2e:ci": "start-server-and-test start http://localhost:5000 cy:run:ci",
"start": "yarn run dev",
"predeploy": "cd example && npm install && yarn run build:package",