1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
require 'minitest/autorun'
require 'knapsack'
if RUBY_VERSION == "1.9.3"
unless defined? Minitest
Minitest = MiniTest
end
unless defined? Minitest::Test
Minitest::Test = MiniTest::Unit::TestCase
end
end
Knapsack.tracker.config({
enable_time_offset_warning: true,
time_offset_in_seconds: 3
})
Knapsack.report.config({
report_path: 'knapsack_minitest_report.json'
})
if ENV['CUSTOM_LOGGER']
require 'logger'
Knapsack.logger = Logger.new(STDOUT)
Knapsack.logger.level = Logger::INFO
end
knapsack_adapter = Knapsack::Adapters::MinitestAdapter.bind
knapsack_adapter.set_test_helper_path(__FILE__)
|