Skip to content

Instantly share code, notes, and snippets.

@printercu
Last active March 7, 2022 01:20
Show Gist options
  • Save printercu/23bce83879eaaf8161410324ad56b235 to your computer and use it in GitHub Desktop.
Save printercu/23bce83879eaaf8161410324ad56b235 to your computer and use it in GitHub Desktop.
Speed up Rails 5 integration tests

Speed up integration tests in Rails 5 app

Rails 5 recompiles templates on every request in test env. Fix will be released only in 5.0.2.

Add this lines to test helper to get the performance now (I've got x2 improvement):

class << ActionView::LookupContext::DetailsKey
  def clear
  end
end

Details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment