Try once relying on codecov yaml to split w/ flags
This commit is contained in:
parent
31357ea9b5
commit
253620650b
@ -49,7 +49,7 @@ jobs:
|
|||||||
# https://www.viget.com/articles/using-junit-on-circleci-2-0-with-jest-and-eslint/
|
# https://www.viget.com/articles/using-junit-on-circleci-2-0-with-jest-and-eslint/
|
||||||
- run:
|
- run:
|
||||||
name: "JavaScript Test Suite"
|
name: "JavaScript Test Suite"
|
||||||
command: yarn run test:unit:ci
|
command: yarn run test:unit
|
||||||
environment:
|
environment:
|
||||||
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
|
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
|
||||||
|
|
||||||
|
|||||||
@ -17,11 +17,20 @@
|
|||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
|
### Global
|
||||||
|
|
||||||
| Commands | | |
|
| Commands | | |
|
||||||
| -------------- | --- | ----------------------------------------------------- |
|
| -------------- | --- | ----------------------------------------------------- |
|
||||||
| `test:unit` | | Jest multi-project test runner; overall coverage |
|
| `test:unit` | | Jest multi-project test runner; overall coverage |
|
||||||
| `test:unit:ci` | | Runs tests in parallel. Reports coverage per project. |
|
| `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
|
## Developing
|
||||||
|
|
||||||
The OHIF Medical Image Viewing Platform is maintained as a
|
The OHIF Medical Image Viewing Platform is maintained as a
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
"start": "lerna run lerna:start --parallel",
|
"start": "lerna run lerna:start --parallel",
|
||||||
"build": "lerna run lerna:build --parallel",
|
"build": "lerna run lerna:build --parallel",
|
||||||
"test:ci": "",
|
"test:ci": "",
|
||||||
"test:unit": "jest --collectCoverage",
|
"test:unit": "jest --ci --runInBand --collectCoverage && codecov",
|
||||||
"test:unit:ci": "lerna run test:unit:ci --parallel",
|
"test:unit:ci": "lerna run test:unit:ci --parallel",
|
||||||
"test:e2e": "",
|
"test:e2e": "",
|
||||||
"test:e2e:ci": "lerna run lerna:test:e2e --parallel",
|
"test:e2e:ci": "lerna run lerna:test:e2e --parallel",
|
||||||
|
|||||||
@ -15,12 +15,12 @@
|
|||||||
"npm": ">=5"
|
"npm": ">=5"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"test:unit": "jest --watch",
|
||||||
"test:unit:ci": "jest --ci --runInBand --collectCoverage && codecov -F core",
|
"test:unit:ci": "jest --ci --runInBand --collectCoverage && codecov -F core",
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"lerna:build": "webpack --config config/webpack.prod.js -w -d",
|
"lerna:build": "webpack --config config/webpack.prod.js -w -d",
|
||||||
"dev": "jest --watch",
|
"dev": "jest --watch",
|
||||||
"start": "rollup -c -w",
|
"start": "rollup -c -w",
|
||||||
"test": "jest",
|
|
||||||
"lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}",
|
"lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}",
|
||||||
"prepublishOnly": "npm run build"
|
"prepublishOnly": "npm run build"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"test:unit": "echo 'platform/i18n: missing unit tests'",
|
||||||
"test:unit:ci": "echo 'platform/i18n: missing unit tests'",
|
"test:unit:ci": "echo 'platform/i18n: missing unit tests'",
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"lerna:build": "webpack --config config/webpack.prod.js -w -d",
|
"lerna:build": "webpack --config config/webpack.prod.js -w -d",
|
||||||
|
|||||||
@ -15,9 +15,9 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"test:unit": "jest --watch",
|
||||||
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests && codecov -F ui",
|
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests && codecov -F ui",
|
||||||
"dev": "docz dev",
|
"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",
|
"lerna:build": "webpack --config config/webpack.prod.js -w -d",
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"start": "rollup -c -w",
|
"start": "rollup -c -w",
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
"proxy": "http://localhost:8042",
|
"proxy": "http://localhost:8042",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lerna:start": "cross-env NODE_ENV=development webpack-dev-server --config config/webpack.dev.js --mode development -w -d",
|
"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",
|
"test:unit:ci": "jest --ci --runInBand --collectCoverage && codecov -F viewer",
|
||||||
"dev": "yarn run preBuild && react-scripts start",
|
"dev": "yarn run preBuild && react-scripts start",
|
||||||
"dev:debug": "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: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: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",
|
"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",
|
"test:e2e:ci": "start-server-and-test start http://localhost:5000 cy:run:ci",
|
||||||
"start": "yarn run dev",
|
"start": "yarn run dev",
|
||||||
"predeploy": "cd example && npm install && yarn run build:package",
|
"predeploy": "cd example && npm install && yarn run build:package",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user