Add minitest/profile to profile 10 slowest tests
This commit is contained in:
parent
fbe52bca85
commit
f1edf9e692
1
Gemfile
1
Gemfile
|
@ -26,6 +26,7 @@ gem 'jekyll_test_plugin_malicious'
|
|||
gem 'liquid-c', '~> 0.0.3'
|
||||
gem 'minitest'
|
||||
gem 'minitest-reporters'
|
||||
gem 'minitest-profile'
|
||||
gem 'test-unit' if RUBY_PLATFORM =~ /cygwin/ || RUBY_VERSION.start_with?("2.2")
|
||||
|
||||
if ENV['BENCHMARK']
|
||||
|
|
|
@ -20,4 +20,4 @@ fi
|
|||
|
||||
set -x
|
||||
|
||||
time bundle exec ruby -Ilib -Itest -rloader $TEST_FILES
|
||||
time bundle exec ruby -Ilib -Itest -rloader $TEST_FILES --profile
|
||||
|
|
|
@ -10,6 +10,7 @@ require 'rubygems'
|
|||
require 'ostruct'
|
||||
require 'minitest/autorun'
|
||||
require 'minitest/reporters'
|
||||
require 'minitest/profile'
|
||||
|
||||
require 'jekyll'
|
||||
|
||||
|
|
Loading…
Reference in New Issue