Sha256: c1a375cfe6b9023a76eab485c3394e90c906e85934aa412e07fa0c7c0c29e3d6

Contents?: true

Size: 1.11 KB

Versions: 10

Compression:

Stored size: 1.11 KB

Contents

require 'simplecov'

module SimpleCov::Configuration
  def clean_filters
    @filters = []
  end
end

SimpleCov.configure do
  clean_filters
  load_adapter 'test_frameworks'
end

ENV["COVERAGE"] && SimpleCov.start do
  add_filter "/.rvm/"
end
require 'rubygems'
require 'test/unit'

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
#require 'scout/helper/misc/development'
require 'scout/tmpfile'
require 'scout/log'
require 'scout/open'
require 'scout/persist'
require 'scout/workflow'

class Test::Unit::TestCase

  def assert_equal_path(path1, path2)
    assert_equal File.expand_path(path1), File.expand_path(path2)
  end

  def tmpdir
    @tmpdir ||= Path.setup('tmp/test_tmpdir').find
  end

  setup do
    TmpFile.tmpdir = tmpdir.tmpfiles
    Log::ProgressBar.default_severity = 0
    Persist.cache_dir = tmpdir.var.cache
    Persist::MEMORY_CACHE.clear
    Open.remote_cache_dir = tmpdir.var.cache
    Workflow.directory = tmpdir.var.jobs
    Workflow.workflows.each{|wf| wf.directory = Workflow.directory[wf.name] }
  end
  
  teardown do
    Open.rm_rf tmpdir
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
scout-gear-10.4.0 test/test_helper.rb
scout-gear-10.3.0 test/test_helper.rb
scout-gear-10.2.0 test/test_helper.rb
scout-gear-10.1.0 test/test_helper.rb
scout-gear-10.0.1 test/test_helper.rb
scout-gear-9.1.0 test/test_helper.rb
scout-gear-9.0.0 test/test_helper.rb
scout-gear-8.1.0 test/test_helper.rb
scout-gear-8.0.0 test/test_helper.rb
scout-gear-7.3.0 test/test_helper.rb