Skip to content

Inactive karma tests #71002

@joshdover

Description

@joshdover

When plugins were migrated to the Kibana Platform, any existing tests that were run using Karma stopped being picked up by the Karma test bundling system. We are making progress on removing this system entirely, but want to inform teams that these tests are not currently being executed. These tests should either be removed or refactored to use the Jest test runner. This is not blocking any work on the Platform team at this time, but there is a risk that the reduction in test coverage may cause future problems.

Command used to find these files:

git ls-files - {src,x-pack}/plugins/*/public/{**,*,}/__tests__/** | grep -Ev ".*\.test\.(js|ts|tsx)(\.snap)?\$" | grep -E "\.(js|ts|tsx)\$"

@elastic/kibana-app-arch

  • src/plugins/kibana_utils/public/storage/__tests__/storage.js
  • src/plugins/visualizations/public/legacy/__tests__/vis_update_objs/gauge_objs.js

@elastic/kibana-gis

  • src/plugins/maps_legacy/public/__tests__/map/kibana_map.js
  • src/plugins/maps_legacy/public/__tests__/map/service_settings.js (migrated Migrate service settings test to jest #70992)
  • src/plugins/region_map/public/__tests__/region_map_visualization.js
  • src/plugins/tile_map/public/__tests__/coordinate_maps_visualization.js
  • src/plugins/tile_map/public/__tests__/geohash_layer.js
  • x-pack/plugins/maps/public/classes/layers/__tests__/mock_sync_context.ts (util file)
  • x-pack/plugins/maps/public/classes/styles/vector/properties/__tests__/test_util.ts (util file)

@elastic/apm-ui

  • x-pack/plugins/apm/public/selectors/__tests__/mockData/anomalyData.ts

@elastic/kibana-canvas #73121

  • x-pack/plugins/canvas/public/__tests__/setup.js
  • x-pack/plugins/canvas/public/components/loading/__tests__/loading.js
  • x-pack/plugins/canvas/public/functions/__tests__/asset.js
  • x-pack/plugins/canvas/public/lib/__tests__/find_expression_type.js
  • x-pack/plugins/canvas/public/lib/__tests__/history_provider.js
  • x-pack/plugins/canvas/public/lib/__tests__/modify_path.js
  • x-pack/plugins/canvas/public/lib/__tests__/resolved_arg.js
  • x-pack/plugins/canvas/public/state/actions/__tests__/elements.get_sibling_context.js
  • x-pack/plugins/canvas/public/state/reducers/__tests__/elements.js
  • x-pack/plugins/canvas/public/state/reducers/__tests__/fixtures/action_creator.js
  • x-pack/plugins/canvas/public/state/reducers/__tests__/resolved_args.js
  • x-pack/plugins/canvas/public/state/selectors/__tests__/resolved_args.js
  • x-pack/plugins/canvas/public/state/selectors/__tests__/workpad.js

@elastic/stack-monitoring

  • x-pack/plugins/monitoring/public/components/alerts/__tests__/map_severity.js
  • x-pack/plugins/monitoring/public/components/chart/__tests__/get_color.js
  • x-pack/plugins/monitoring/public/components/chart/__tests__/get_last_value.js
  • x-pack/plugins/monitoring/public/components/chart/__tests__/get_title.js
  • x-pack/plugins/monitoring/public/components/chart/__tests__/get_values_for_legend.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/__tests__/config.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/__tests__/pipeline_state.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/graph/__tests__/boolean_edge.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/graph/__tests__/edge.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/graph/__tests__/edge_factory.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/graph/__tests__/if_vertex.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/graph/__tests__/index.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/graph/__tests__/plugin_vertex.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/graph/__tests__/queue_vertex.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/graph/__tests__/vertex.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/graph/__tests__/vertex_factory.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/pipeline/__tests__/if_statement.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/pipeline/__tests__/make_statement.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/pipeline/__tests__/pipeline.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/pipeline/__tests__/plugin_statement.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/pipeline/__tests__/queue.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/pipeline/__tests__/statement.js
  • x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/pipeline/__tests__/utils.js
  • x-pack/plugins/monitoring/public/directives/main/__tests__/monitoring_main_controller.js
  • x-pack/plugins/monitoring/public/lib/__tests__/format_number.js
  • x-pack/plugins/monitoring/public/lib/logstash/__tests__/pipelines.js
  • x-pack/plugins/monitoring/public/services/__tests__/breadcrumbs.js
  • x-pack/plugins/monitoring/public/services/__tests__/executor.js
  • x-pack/plugins/monitoring/public/views/__tests__/base_controller.js
  • x-pack/plugins/monitoring/public/views/__tests__/base_table_controller.js

@elastic/observability-ui (couldn't find the Uptime team alias)

  • x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/__tests__/__mocks__/mock.ts -- 90% sure this isn't related to Karma, but got picked up by the same glob pattern jest test

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//chore

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions