Omit locally configurable files and testing code from coverage report
authorTom Clegg <tom@curoverse.com>
Mon, 5 May 2014 02:23:51 +0000 (22:23 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 5 May 2014 02:23:51 +0000 (22:23 -0400)
apps/workbench/test/test_helper.rb
services/api/test/test_helper.rb

index ea5cb0660ccdc35d1d69b44d426084766f862068..3ca0a6da7b163ff14bf3249535733136f3f75726 100644 (file)
@@ -2,7 +2,10 @@ ENV["RAILS_ENV"] = "test"
 unless ENV["NO_COVERAGE_TEST"]
   begin
     require 'simplecov'
-    SimpleCov.start
+    SimpleCov.start do
+      add_filter '/test/'
+      add_filter 'initializers/secret_token'
+    end
   rescue Exception => e
     $stderr.puts "SimpleCov unavailable (#{e}). Proceeding without."
   end
index faa1c648e6c89e704fa332ab025f0d1faabaa22b..d0786743e4e4de129f53074cd1575efd2395f741 100644 (file)
@@ -2,7 +2,11 @@ ENV["RAILS_ENV"] = "test"
 unless ENV["NO_COVERAGE_TEST"]
   begin
     require 'simplecov'
-    SimpleCov.start
+    SimpleCov.start do
+      add_filter '/test/'
+      add_filter 'initializers/secret_token'
+      add_filter 'initializers/omniauth'
+    end
   rescue Exception => e
     $stderr.puts "SimpleCov unavailable (#{e}). Proceeding without."
   end