test(website): generate Cobertura coverage with Vitest#2142
test(website): generate Cobertura coverage with Vitest#2142prasunsrivastav123-lang wants to merge 1 commit intoOWASP:masterfrom
Conversation
|
Coverage needs to include coverage from all 3 projects: #1779 |
|
@sydseter Got it — coverage is produced separately for the website, Copi, and the converter. I’ve aligned the website to Cobertura with a consistent path and can apply the same to the other two so all three are included. Happy to proceed if that sounds good |
|
coverage is already generated here… website: config: copi: converter scripts: These are the job actions doing the upload to qlty: |
|
The problem is that the repository is a mono repository and qlty doesn’t understand that we have all this code in different places. So we need to stich together the coverage output and send it to qlty as one file or one folder and only one time. What ever works for qlty. I suspect that the qlty github action only can be run once per build which means that you need to create a separate github workflow that is triggered when master is built and that run tests and coverage for copi, website and python scripts (converter) and uploads all these results as one file or one folder to qlty. If you have any questions regarding that, please ask. |
|
hey @sydseter |
|
Whatever works. I will be reviewing when I have time and get back to you asap. |
Summary
Enable Cobertura coverage generation for the website project.
Changes
vite.config.tscoverage/Notes
Coverage verified locally with:
npx vitest run --coverage