From f1edf9e692389f445eabbf45198722758026dd9d Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 1 Mar 2015 00:36:40 -0800 Subject: [PATCH] Add minitest/profile to profile 10 slowest tests --- Gemfile | 1 + script/test | 2 +- test/helper.rb | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index f29e4abd..625cd5f9 100644 --- a/Gemfile +++ b/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'] diff --git a/script/test b/script/test index 38ae46b6..7da787d5 100755 --- a/script/test +++ b/script/test @@ -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 diff --git a/test/helper.rb b/test/helper.rb index dd6b38da..e4a50db0 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -10,6 +10,7 @@ require 'rubygems' require 'ostruct' require 'minitest/autorun' require 'minitest/reporters' +require 'minitest/profile' require 'jekyll'