Skip to content

Commit

Permalink
Using simplecov for code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
bfontaine committed Feb 13, 2013
1 parent 08d5260 commit 8e05758
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitignore
@@ -1,5 +1,6 @@
*.swp
*~ *~
*.swp
*.swo
/*.rb /*.rb
/*.gem /*.gem
*.swo /coverage
1 change: 1 addition & 0 deletions Gemfile
@@ -1,3 +1,4 @@
source :rubygems source :rubygems


gem 'rake', :group => :test gem 'rake', :group => :test
gem 'simplecov', :require => false, :group => :test
7 changes: 6 additions & 1 deletion tests/tests.rb
Expand Up @@ -3,9 +3,14 @@


require 'test/unit' require 'test/unit'
require 'tempfile' require 'tempfile'
require 'simplecov'

SimpleCov.start { add_filter '/tests/' } if ENV['COVERAGE']

require_relative '../lib/graph' 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( File.expand_path( File.dirname(__FILE__) ), '*_tests.rb' ) )
require t require t
end end

0 comments on commit 8e05758

Please sign in to comment.