Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't flunk the tests for incomplete coverage when you're not running…

… the whole suite
  • Loading branch information...
commit dfe9802e27e547a61102313521c7ed70b8536cce 1 parent 09f3d38
@chrisk authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 test/helpers/start_simplecov.rb
View
7 test/helpers/start_simplecov.rb
@@ -8,7 +8,8 @@ def self.start_simplecov
SimpleCov.start do
add_filter "/test/"
- minimum_coverage 100
+
+ minimum_coverage 100 if FakeWebTestHelper.running_all_tests?
if defined?(SIMPLECOV_COMMAND_NAME)
command_name SIMPLECOV_COMMAND_NAME
@@ -24,6 +25,10 @@ def self.start_simplecov
end
end
end
+
+ def self.running_all_tests?
+ ENV['TEST'].nil?
+ end
end
FakeWebTestHelper.start_simplecov
Please sign in to comment.
Something went wrong with that request. Please try again.