Skip to content

Commit d69b907

Browse files
committed
cobertura report
1 parent 42e9de2 commit d69b907

File tree

4 files changed

+23703
-19
lines changed

4 files changed

+23703
-19
lines changed

.github/workflows/front.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
override_commit: "${{ github.event.pull_request.head.sha }}"
3737
name: codecov
3838
flags: front
39-
directory: ./front
40-
files: junit.xml
39+
directory: ./front/test
40+
files: cobertura-coverage.xml
4141
token: ${{ secrets.CODECOV_TOKEN }}
4242
fail_ci_if_error: true
4343
verbose: true

front/package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
"eslint-config-prettier": "^8.5.0",
110110
"eslint-plugin-only-warn": "^1.0.3",
111111
"eslint-plugin-prettier": "^4.2.1",
112-
"jest-junit": "^15.0.0",
113112
"prettier": "^2.7.1",
114113
"typescript": "~4.4.2",
115114
"web-vitals": "^2.1.0"
@@ -123,7 +122,7 @@
123122
"start": "react-scripts start",
124123
"build": "react-scripts --max_old_space_size=4096 build",
125124
"test": "react-scripts test",
126-
"test-coverage": "react-scripts test --watchAll=false --coverage --testResultsProcessor=jest-junit --reporters=default --reporters=jest-junit",
125+
"test-coverage": "react-scripts test --watchAll=false --coverage --coverageDirectory=test",
127126
"eject": "react-scripts eject",
128127
"lint-ts": "eslint --ext .ts,.tsx src",
129128
"generate-types": "npx @rtk-query/codegen-openapi src/common/api/openapi-config.js",
@@ -153,5 +152,11 @@
153152
}
154153
}
155154
]
155+
},
156+
"jest": {
157+
"coverageReporters": [
158+
"text",
159+
"cobertura"
160+
]
156161
}
157162
}

0 commit comments

Comments
 (0)