Run and report individually and in parallel
This commit is contained in:
parent
b8baae7c25
commit
31357ea9b5
@ -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
|
||||
command: yarn run test:unit:ci
|
||||
environment:
|
||||
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
|
||||
|
||||
|
||||
@ -15,6 +15,13 @@
|
||||
|
||||
...
|
||||
|
||||
## Commands
|
||||
|
||||
| Commands | | |
|
||||
| -------------- | --- | ----------------------------------------------------- |
|
||||
| `test:unit` | | Jest multi-project test runner; overall coverage |
|
||||
| `test:unit:ci` | | Runs tests in parallel. Reports coverage per project. |
|
||||
|
||||
## Developing
|
||||
|
||||
The OHIF Medical Image Viewing Platform is maintained as a
|
||||
|
||||
@ -45,6 +45,6 @@ module.exports = {
|
||||
build: {
|
||||
ignore: ["**/*.test.jsx", "**/*.test.js", "__snapshots__", "__tests__"]
|
||||
}
|
||||
},
|
||||
ignore: ["node_modules"]
|
||||
}
|
||||
// ignore: ["node_modules"]
|
||||
};
|
||||
|
||||
@ -14,8 +14,11 @@
|
||||
"cm": "npx git-cz",
|
||||
"start": "lerna run lerna:start --parallel",
|
||||
"build": "lerna run lerna:build --parallel",
|
||||
"test": "jest --ci --runInBand --collectCoverage",
|
||||
"test:unit": "lerna run lerna:test:unit --parallel",
|
||||
"test:ci": "",
|
||||
"test:unit": "jest --collectCoverage",
|
||||
"test:unit:ci": "lerna run test:unit:ci --parallel",
|
||||
"test:e2e": "",
|
||||
"test:e2e:ci": "lerna run lerna:test:e2e --parallel",
|
||||
"new-version": "lerna version --conventional-commits --yes",
|
||||
"build:pwa:ci": ""
|
||||
},
|
||||
|
||||
1
platform/core/babel.config.js
Normal file
1
platform/core/babel.config.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require("../../babel.config.js");
|
||||
@ -15,13 +15,12 @@
|
||||
"npm": ">=5"
|
||||
},
|
||||
"scripts": {
|
||||
"cm": "npx git-cz",
|
||||
"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",
|
||||
"test:ci": "jest --ci --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov",
|
||||
"lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
|
||||
1
platform/i18n/babel.config.js
Normal file
1
platform/i18n/babel.config.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require("../../babel.config.js");
|
||||
@ -18,6 +18,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"test:unit:ci": "echo 'platform/i18n: missing unit tests'",
|
||||
"build": "rollup -c",
|
||||
"lerna:build": "webpack --config config/webpack.prod.js -w -d",
|
||||
"prepublishOnly": "npm run build",
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
{
|
||||
"presets": [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"targets": {
|
||||
"ie": "11"
|
||||
}
|
||||
}
|
||||
],
|
||||
"@babel/preset-react"
|
||||
],
|
||||
"plugins": [
|
||||
"inline-react-svg",
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
"@babel/plugin-transform-runtime"
|
||||
]
|
||||
}
|
||||
1
platform/ui/babel.config.js
Normal file
1
platform/ui/babel.config.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require("../../babel.config.js");
|
||||
@ -15,7 +15,7 @@
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"lerna:test:unit": "jest --ci --runInBand --collectCoverage && codecov -F ui",
|
||||
"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",
|
||||
|
||||
1
platform/viewer/babel.config.js
Normal file
1
platform/viewer/babel.config.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require("../../babel.config.js");
|
||||
@ -14,7 +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",
|
||||
"lerna:test:unit": "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:debug": "react-scripts start",
|
||||
"build:package": "yarn run preBuild && node --max-old-space-size=4096 node_modules/rollup/bin/rollup -c",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user