You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/e2e-cypress/README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,21 +57,26 @@ To generate reports, run `test:e2e:ci` and/or `test:component:ci` scripts.
57
57
Running them both sequentially within the same command (eg. `yarn test:e2e:ci && yarn test:component:ci`) will result in combined coverage report.
58
58
You'll find the generated report into `coverage/lcov-report` folder.
59
59
60
-
We provide a [preset configuration](https://github.com/quasarframework/quasar-testing/blob/dev/packages/e2e-cypress/nyc-config-preset.json) for the coverage report which:
60
+
We provide a [preset configuration][nyc-config-preset] for the coverage report which:
61
61
62
62
- enables `all` option to include some files which are ignored by default:
63
63
- dynamically imported components, such as layout and pages imported by vue-router;
64
64
- files not touched by any test.
65
65
- excludes test folders (`__tests__`) and TS declaration files (\*.d.ts), which should already be excluded [by default](https://github.com/istanbuljs/schema/blob/master/default-exclude.js) but apparently aren't;
66
-
- only includes actual code files, leaving out code-like static assets (eg. svgs).
66
+
- only includes actual code files, leaving out code-like static assets (e.g. SVGs).
67
67
68
68
Check out [nyc official documentation](https://github.com/istanbuljs/nyc) if you want to customize report generation.
69
69
You can either add options into `.nycrc` file or generate reports on the fly running `nyc report <options>`.
70
70
71
+
If you want to override the options that are defined by our [preset configuration][nyc-config-preset](_or any preset_), you should be aware of [this nyc issue](https://github.com/istanbuljs/nyc/issues/1286).
72
+
You can either apply [this workaround](https://github.com/istanbuljs/nyc/issues/1286#issuecomment-926077635) or embed our [preset configuration][nyc-config-preset] into your `.nycrc` file directly, instead of `extends`.
73
+
71
74
> Note that we do not setup [Istanbul TS configuration](https://github.com/istanbuljs/istanbuljs/tree/master/packages/nyc-config-typescript) and its dependencies as Cypress claims [it's able to manage TS code coverage out-of-the-box](https://github.com/cypress-io/code-coverage#typescript-users).
72
75
> Some TS files may be excluded by the report in scenarios, eg. if they aren't actually imported (dead code), if they're tree-shaked away by a bundler or if they only contain types/interfaces, and as such have no actual JS representation.
73
76
> Please open an issue if you notice some files are missing from generated reports in this scenario.
> if you're coming from v3, follow [the migration guide for v4 and v4.1 first](https://github.com/quasarframework/quasar-testing/tree/cypress-v4/packages/e2e-cypress#upgrade-from-cypress-v4-to-v41-optional)
0 commit comments