-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[code coverage] Update jest config to collect more data #83804
Conversation
Any reason for not removing the specificity and instead using something like |
Hey @tylersmalley I was not sure if we really want to include every path, e.g.:
and all the stuff under
If you think that we should, I propose to go with the following template:
|
@elasticmachine merge upstream |
Ready for review, code coverage pipeline started o verify: https://kibana-ci.elastic.co/job/elastic+kibana+qa-research/139/ |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
* collect code coverage for more files in src/ * update config * update config according review * move collectCoverageFrom to preset Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # src/dev/jest/config.js
) * collect code coverage for more files in src/ * update config * update config according review * move collectCoverageFrom to preset Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # src/dev/jest/config.js
* master: (67 commits) [Observability] Load hasData call asynchronously (elastic#80644) Implement AnonymousAuthenticationProvider. (elastic#79985) Deprecate `visualization:colorMapping` advanced setting (elastic#83372) [TSVB] [Rollup] Table tab not working with rollup indexes (elastic#83635) Revert "[Search] Search batching using bfetch (elastic#83418)" (elastic#84037) skip flaky suite (elastic#83772) skip flaky suite (elastic#69849) create kbn-legacy-logging package (elastic#77678) [Search] Search batching using bfetch (elastic#83418) [Security Solution] Refactor Timeline flyout to take a full page (elastic#82033) Drop use of console-stamp (elastic#83922) skip flaky suite (elastic#84011 , elastic#84012) Fixed usage of `isReady` for usage collection of alerts and actions (elastic#83760) [maps] support URL drilldowns (elastic#83732) Revert "Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. (elastic#83226)" [code coverage] Update jest config to collect more data (elastic#83804) Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. (elastic#83226) [Security Solution] Give notice when endpoint policy is out of date (elastic#83469) [Security Solution] Sync url state on any changes to query string (elastic#83314) [CI] Initial TeamCity implementation (elastic#81043) ...
Summary
Code coverage for oss jest tests was collecting data only for files in
src/plugins
, so combined coverage for files with different path (e.g.src/core
) was reported as 0%Before
After
Combined jest report has slightly better numbers:
Before
https://kibana-coverage.elastic.dev/2020-11-19T10:16:00Z/jest-combined/index.html
After
https://kibana-coverage.elastic.dev/2020-11-19T16:04:07Z/jest-combined/index.html