Skip to content

Improve dashboard feature spec performance

What does this MR do and why?

Improve execution time of specs at (ee/spec/features/projects/analytics/dashboards_spec.rb:118)[https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/spec/features/projects/analytics/dashboards_spec.rb#L118].

Steps taken

  1. Reduce amount of issues and merge requests created
  2. Merge two specs which were doing basically the same thing into one to avoid rendering the same page twice.
  3. Create data aggregation on before_all block

The execution time went from 1:21 minutes to 37 seconds on localhost.

related to #476148 (comment 2096132282)

Edited by Felipe Cardozo

Merge request reports

Loading