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:
parent
8a81d41d5e
commit
7fc104a019
1
Gemfile
1
Gemfile
@ -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
|
||||
|
@ -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
|
||||
|
@ -18,7 +18,7 @@ module Elf
|
||||
return result
|
||||
end
|
||||
def main(arg)
|
||||
return fibo(20)
|
||||
return fibo(8)
|
||||
end
|
||||
HERE
|
||||
@exit_code = 4
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user