istanbuljs / nyc

the Istanbul command line interface
https://istanbul.js.org/
ISC License
5.59k stars 359 forks source link

Code coverage with cypress, typescript, vue.js and quasar framework #1366

Open Cauany opened 3 years ago

Cauany commented 3 years ago

I'm having a problem with the configuration of the coverage of my project, where I'm using Vue.Js, Quasar framework and Typescript. Coverage reports are returning all files, but the files are not read in the coverage.

Dependencies -> nyc, @cypress-coverage, @istanbuljs/nyc-config-typescript, coveralls, istanbul-instrumenter-loader, istanbul-lib-coverage, @cypress/webpack-preprocessor and babel/preset-typescript.

Files Babelrc -> {"plugins": ["istanbul"],} Nycrc.json -> { "nyc": { "extends": "@istanbuljs/nyc-config-typescript", "all": true } }

Babel.config.js -> module.exports = { plugins: [ ['babel-plugin-istanbul', { extension: ['.js', '.vue','.ts'] }] ] }; Screenshot_20201109_165001

maiolica commented 2 years ago

I am experiencing a similar issue, I have created a repo to reproduce it: https://github.com/maiolica/quasar-2-test-coverage

Cauany commented 2 years ago

Hi! It's okay. I will accompany!!! Thank you so much. ^ ^

Em sáb., 19 de fev. de 2022 às 15:49, Gualtiero @.***> escreveu:

I am experiencing a similar issue, I have created a repo to reproduce it: https://github.com/maiolica/quasar-2-test-coverage

— Reply to this email directly, view it on GitHub https://github.com/istanbuljs/nyc/issues/1366#issuecomment-1046081886, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOR3TTQ4I2CMRVC3YXLUGQLU37Q5BANCNFSM4TPZAQHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

IlCallo commented 2 years ago

I just published oob code coverage support for Cypress + Vite + Quasar, check it out: https://github.com/quasarframework/quasar-testing/releases/tag/e2e-cypress-v4.1.0