Add more nested data tests, actually get simplecov to run
This commit is contained in:
parent
3d247d40fb
commit
fef8b8417d
5 changed files with 19 additions and 4 deletions
|
@ -1,8 +1,17 @@
|
|||
require 'simplecov'
|
||||
|
||||
ENV["TEST"] = "true"
|
||||
ENV["AUTOLOAD_SPROCKETS"] = "false"
|
||||
|
||||
if ENV["COVERAGE"] && (RUBY_VERSION =~ /1\.9/ || RUBY_VERSION =~ /2\.0/))
|
||||
require 'simplecov'
|
||||
SimpleCov.root(File.expand_path(File.dirname(__FILE__) + '/../..'))
|
||||
SimpleCov.start do
|
||||
add_filter '/features/'
|
||||
add_filter '/spec/'
|
||||
add_filter '/vendor'
|
||||
add_filter '/step_definitions/'
|
||||
end
|
||||
end
|
||||
|
||||
PROJECT_ROOT_PATH = File.dirname(File.dirname(File.dirname(__FILE__)))
|
||||
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core')
|
||||
require File.join(PROJECT_ROOT_PATH, 'lib', 'middleman-core', 'step_definitions')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue