Skip to content

Speed up features/notes_on_merge_requests_spec

Created by: rspeicher

This spec featured the slowest tests in the entire suite. After some debugging, the cause was found to be the large commit diff generated by comparing the stable and master branches.

To fix this, the seed repository was modified to create a simple branch off of master that consists of three simple commits and minor changes. The spec was then updated to compare master to this branch instead of stable. The result is a spec group that runs in under 30 seconds, down from about 90.

For a good visual, this image shows what was being rendered on every single spec, and this shows what it is now.

Merge request reports