Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Webpack support for Cypress Code Coverage #227

Open
gtrombitas opened this issue May 12, 2022 · 3 comments
Open

Feature request: Webpack support for Cypress Code Coverage #227

gtrombitas opened this issue May 12, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@gtrombitas
Copy link

Hi,

I added @quasar/testing-e2e-cypress extension to my Quasar project (Quasar 2 + Vue 3 + Typescript). Cypress execution works well but I need code coverage for my e2e test cases as well. During installation and I saw the following fact among additional options:

enable code coverage (currently only supported using Vite, not Webpack)

My question would be that do you have plans for the future to support Webpack based projects as well?
If not nowadays then could you please recommend a solution for workaround?

Thanks in advance.

Regards,
Gergely

@IlCallo
Copy link
Member

IlCallo commented May 12, 2022

Hey there, we plan to support it, but I'm not currently able to work on it, as there are other priorities/features I need to check out first, eg. give some time and love to Jest AE

We were able to add Vite and code coverage support thanks to a sponsor which allowed my own consulting company (which is in turn a Quasar sponsor) to spend some time working on it

If you would like to send a PR to support code coverage for webpack too, I left some docs explaining how to do it, and it should be fairly simple, I can then review the PR

// TODO: add webpack code coverage support
// See https://www.npmjs.com/package/istanbul-instrumenter-loader
// https://github.com/vuejs/vue-cli/issues/1363#issuecomment-405352542
// https://github.com/akoidan/vue-webpack-typescript

I know some other dev from the community wants to give it a try, but wasn't able to do so up until now

@IlCallo IlCallo added the enhancement New feature or request label Jun 1, 2022
gtrombitas added a commit to gtrombitas/quasar-testing that referenced this issue Jun 23, 2022
gtrombitas added a commit to gtrombitas/quasar-testing that referenced this issue Jul 7, 2022
@gtrombitas
Copy link
Author

@IlCallo Sorry about my late response but I don't have efficient time to check and try your suggestions.
Anyway I created a pull request for this issue please verify my changes.

gtrombitas added a commit to gtrombitas/quasar-testing that referenced this issue Jul 8, 2022
gtrombitas added a commit to gtrombitas/quasar-testing that referenced this issue Jul 8, 2022
@IlCallo
Copy link
Member

IlCallo commented Mar 6, 2023

https://muratkerem.gitbook.io/cctdd/ch30-appendix/combined-code-coverage
This may come handy, if we manage to fix upstream problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants