Permalink
Browse files

Fixed code coverage.

  • Loading branch information...
1 parent 1e892e2 commit bd8a2c854d9751e082b8de9dc89cdd3ee104e93f @bfontaine committed Feb 13, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/tests.rb
View
6 tests/tests.rb
@@ -5,12 +5,16 @@
require 'tempfile'
require 'simplecov'
+test_dir = File.expand_path( File.dirname(__FILE__) )
+
SimpleCov.start { add_filter '/tests/' } if ENV['COVERAGE']
require_relative '../lib/graph'
require_relative '../lib/graphs/gdf'
require_relative '../lib/graphs/json'
-for t in Dir.glob( File.join( File.expand_path( File.dirname(__FILE__) ), '*_tests.rb' ) )
+for t in Dir.glob( File.join( test_dir, '*_tests.rb' ) )
require t
end
+
+exit Test::Unit::AutoRunner.run

0 comments on commit bd8a2c8

Please sign in to comment.