← Graph

Cache Clear Hook Killed a Test Suite

takeaway 2 connections

Audience war story: on joining a new company, the test suite took ~15 minutes. test-prof revealed that someone had configured RSpec to clear the Rails cache (and a few related lines) before every example. Removing that single configuration line cut the suite from 15 minutes to 40 seconds.

type
lesson-learned
takeaway Cache Clear Hook Killed a Test Suite
about
test-prof tool
The contributor used test-prof to identify the RSpec before-each Rails.cache.clear that was the root cause.
takeaway Cache Clear Hook Killed a Test Suite
from_talk
Audience war story shared during Q&A.

Provenance

Read by
2 extractions