From 994bd651f8685a279b15a9c6df98ec3bd33ef136 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Tue, 28 May 2013 22:11:57 -0700 Subject: [PATCH] Add Simplecov --- .simplecov | 6 ++++++ Gemfile | 1 + middleman-core/features/support/env.rb | 2 ++ middleman-core/spec/spec_helper.rb | 1 + 4 files changed, 10 insertions(+) create mode 100644 .simplecov diff --git a/.simplecov b/.simplecov new file mode 100644 index 00000000..56e0129c --- /dev/null +++ b/.simplecov @@ -0,0 +1,6 @@ +SimpleCov.start do + add_filter '/features/' + add_filter '/spec/' + add_filter '/vendor' + add_filter '/step_definitions/' +end diff --git a/Gemfile b/Gemfile index 90fac6b2..31989c07 100644 --- a/Gemfile +++ b/Gemfile @@ -9,6 +9,7 @@ gem "cucumber", "~> 1.3.1" gem "fivemat" gem "aruba", "~> 0.5.1" gem "rspec", "~> 2.12" +gem "simplecov" # Optional middleman dependencies, included for tests gem "haml", "~> 4.0.0", :require => false # Make sure to use Haml 4 for tests diff --git a/middleman-core/features/support/env.rb b/middleman-core/features/support/env.rb index e76d79b1..de32f2c7 100644 --- a/middleman-core/features/support/env.rb +++ b/middleman-core/features/support/env.rb @@ -1,3 +1,5 @@ +require 'simplecov' + ENV["TEST"] = "true" ENV["AUTOLOAD_SPROCKETS"] = "false" diff --git a/middleman-core/spec/spec_helper.rb b/middleman-core/spec/spec_helper.rb index e69de29b..6d75bd08 100644 --- a/middleman-core/spec/spec_helper.rb +++ b/middleman-core/spec/spec_helper.rb @@ -0,0 +1 @@ +require 'simplecov'