aboutsummaryrefslogtreecommitdiff
path: root/test/test_mauve.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_mauve.rb')
-rw-r--r--test/test_mauve.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/test_mauve.rb b/test/test_mauve.rb
index a0531d7..81c2a1f 100644
--- a/test/test_mauve.rb
+++ b/test/test_mauve.rb
@@ -1,3 +1,9 @@
+if ENV['COVERAGE']
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter "test/"
+ end
+end
%w(. ..).each do |path|
libdir = File.join(path,"lib")
@@ -8,9 +14,10 @@ require 'pp'
require 'test/unit'
require 'th_mauve'
+
%w(. test).each do |dir|
-Dir.glob(File.join(dir,"tc_*.rb")).each do |s|
- require s
-end
+ Dir.glob(File.join(dir,"tc_*.rb")).each do |s|
+ require s
+ end
end