summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
blob: b8506ec51d07ee95fe6ec99b2e1ab7e056781c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'bundler'
require 'simplecov'
SimpleCov.start do
  add_filter '/test/'
  add_filter do |source_file|
    source_file.lines.count < 15
  end
end

require 'test/unit'
require 'mocha/setup'

# override the default hcl dir
FileUtils.mkdir_p __dir__+"/dot_hcl"
ENV['HCL_DIR'] = __dir__+"/dot_hcl"

$:.unshift(__dir__ + '/../lib')
require 'hcl'