Use minitest-profile to find long tests

Only found one big fibo
All else due to large amount of objects
(now with factories it jumped from hundreds to thousands)
This commit is contained in:
Torsten Ruger 2018-09-02 13:58:42 +03:00
parent 8a81d41d5e
commit 7fc104a019
4 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@ group :test do
gem "simplecov"
gem "minitest-color"
gem 'minitest-fail-fast'
gem 'minitest-profile'
#gem "minitest-reporters"
gem "net-ssh"
end

View File

@ -51,6 +51,7 @@ GEM
minitest (~> 5)
minitest-fail-fast (0.1.0)
minitest (~> 5)
minitest-profile (0.0.2)
nenv (0.3.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
@ -98,6 +99,7 @@ DEPENDENCIES
guard-minitest
minitest-color
minitest-fail-fast
minitest-profile
net-ssh
rake
rb-readline

View File

@ -18,7 +18,7 @@ module Elf
return result
end
def main(arg)
return fibo(20)
return fibo(8)
end
HERE
@exit_code = 4

View File

@ -15,6 +15,7 @@ end
require "minitest/color"
require "minitest/autorun"
require "minitest/fail_fast" unless ENV["TEST_ALL"]
require 'minitest/profile'
#require "minitest/reporters"
#Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new