test/zold/test__helper.rb in zold-stress-0.1.0 vs test/zold/test__helper.rb in zold-stress-0.2.0
- old
+ new
@@ -30,15 +30,16 @@
# require 'codecov'
# SimpleCov.formatter = SimpleCov::Formatter::Codecov
# end
require 'concurrent'
+require 'slop'
require 'minitest/autorun'
module Minitest
class Test
def test_log
require 'zold/log'
- @test_log ||= Zold::Log::Sync.new(Zold::Log::Verbose.new)
+ @test_log ||= Zold::Log::Sync.new(ENV['TEST_QUIET_LOG'] ? Zold::Log::Quiet.new : Zold::Log::Verbose.new)
end
def test_opts(*argv)
Slop.parse(argv + ['--ignore-score-weakness', '--network=test'], suppress_errors: true) do |o|
o.integer '--pool', default: 3