[code coverage] Update jest config to collect more data#83804
Merged
dmlemeshko merged 6 commits intoelastic:masterfrom Nov 20, 2020
Merged
[code coverage] Update jest config to collect more data#83804dmlemeshko merged 6 commits intoelastic:masterfrom
dmlemeshko merged 6 commits intoelastic:masterfrom
Conversation
Member
|
Any reason for not removing the specificity and instead using something like |
Contributor
Author
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: |
Contributor
Author
|
@elasticmachine merge upstream |
Contributor
Author
|
Ready for review, code coverage pipeline started o verify: https://kibana-ci.elastic.co/job/elastic+kibana+qa-research/139/ |
tylersmalley
approved these changes
Nov 20, 2020
Contributor
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
dmlemeshko
added a commit
to dmlemeshko/kibana
that referenced
this pull request
Nov 20, 2020
* collect code coverage for more files in src/ * update config * update config according review * move collectCoverageFrom to preset Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # src/dev/jest/config.js
gmmorris
added a commit
to rudolf/kibana
that referenced
this pull request
Nov 23, 2020
* 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) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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