ruby on rails - How to make Minitest run faster? -
ruby on rails - How to make Minitest run faster? -
in new rails project, minitest running slow:
first set spring binstubs:
david$ bundle exec spring binstub --all * bin/rake: spring inserted * bin/rails: spring inserted next run default test (navigation_test.rb) through spring:
david$ time bundle exec spring rake test run options: --seed 32313 # running: . finished in 0.003368s, 296.9121 runs/s, 296.9121 assertions/s. 1 runs, 1 assertions, 0 failures, 0 errors, 0 skips real 0m5.171s user 0m0.581s sys 0m0.098s the next runs faster, still slow (around 3 secs):
david$ time bundle exec spring rake test run options: --seed 48522 # running: . finished in 0.003506s, 285.2253 runs/s, 285.2253 assertions/s. 1 runs, 1 assertions, 0 failures, 0 errors, 0 skips real 0m3.159s user 0m0.579s sys 0m0.088s if run 1 time again without bundler, it's little faster:
david$ time spring rake test run options: --seed 55025 # running: . finished in 0.003413s, 292.9974 runs/s, 292.9974 assertions/s. 1 runs, 1 assertions, 0 failures, 0 errors, 0 skips real 0m2.677s user 0m0.087s sys 0m0.032s anyone using minitest+spring? how create run faster?
using rails 4.1.1
once have set spring , binstubs, there no reason go on phone call bundler. seek this:
$ time bin/rake test ruby-on-rails ruby-on-rails-4 minitest
Comments
Post a Comment