Only set up search indexes for rspec specs that use them

Description

We currently set up and delete all Elasticsearch indexes before and after all rspec tests. This adds a noticeable lag which we don't really need for tests that don't use the search index. We should be able to differentiate them pretty easily using tags, so it's just a matter of going through all the files and making sure they have the right settings and the tests still pass.

Activity

Show:
redsummernight
May 5, 2020, 5:34 AM

This change significantly reduces the running time of our RSpec test suite. An example, around the time the change was merged:

  • rspec spec/controllers: 40m down to 15m

  • rspec spec/miscellaneous: 15m to 6m

  • rspec spec/models: 18m to 9m

DeployedToBeta

Assignee

Elz J

Reporter

Elz J

Roadmap

Browse
Search

Priority

Medium

Affects versions

Fix versions

Components

AutomatedTests

Difficulty

Medium

Milestone

Internal 0.9
Configure