Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Faster specs

Faster specs

Avatar for Alexander Balashov

Alexander Balashov

June 14, 2013

Other Decks in Programming

Transcript

  1. :development • hirb • wirble • bullet • migration_opener •

    letter_opener • capistrano • quiet_assets • capistrano-nc • localeapp • dev_log_in Friday, June 14, 13
  2. Lazy require => 3с gem 'savon', require: false require 'savon'

    gem ‘paper_trail’, require: false gem 'whenever', require: false Friday, June 14, 13
  3. • до 2 мин на создание одной фабрики • несколько

    тысяч вызовов каждой • 7 фабрик с временем минута и более Friday, June 14, 13
  4. (10 * 60 + 42) / (15 * 60 +

    13) = 2x Friday, June 14, 13
  5. Итог spring binstub rspec => ./bin/test alias fs='FAST_SPEC_START=1 ./bin/test' unless

    ENV['FAST_SPEC_START'] Seed.all end fs spec/models/user_spec.rb:13 Friday, June 14, 13
  6. (15 * 60 + 13) / (2 * 60 +

    38) = 6x Friday, June 14, 13