Skip to content
Snippets Groups Projects
Commit 9c62facd authored by Albin Henriksson's avatar Albin Henriksson
Browse files

#7: Added coverage report to client side

parent 23dc6a21
No related branches found
No related tags found
1 merge request!12Issue/7 add test coverage report
Pipeline #34164 passed
......@@ -51,3 +51,6 @@ client:test:
- cd client
- npm run test:coverage
coverage: /All files\s*\|\s*([\d\.]+)/
artifacts:
reports:
cobertura: client/output/coverage/jest/cobertura-coverage.xml
......@@ -38,7 +38,7 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint \"./src/**/*.{js,ts,tsx}\"",
"test:coverage": "react-scripts test --coverage"
"test:coverage": "react-scripts test --coverage --coverageDirectory=output/coverage/jest"
},
"browserslist": {
"production": [
......@@ -57,6 +57,10 @@
"src/**/*.{js,jsx,tsx,ts}",
"!src/index.tsx",
"!src/reportWebVitals.ts"
],
"coverageReporters": [
"text",
"cobertura"
]
},
"proxy": "http://localhost:5000/api/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment