quasarframework / quasar-testing

Testing Harness App Extensions for the Quasar Framework 2.0+
https://testing.quasar.dev
MIT License
180 stars 65 forks source link

Feature request: Webpack support for Cypress Code Coverage #227

Open gtrombitas opened 2 years ago

gtrombitas commented 2 years ago

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 commented 2 years ago

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

https://github.com/quasarframework/quasar-testing/blob/8a67af79d5c5fd0d5a5c81ce901708c3b5bc334e/packages/e2e-cypress/src/index.js#L43-L46

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

gtrombitas commented 2 years ago

@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.

IlCallo commented 1 year ago

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