Skip to content

Commit

Permalink
Added filter for test folder on simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
plribeiro3000 committed Jul 4, 2014
1 parent 74b8f50 commit 6d31d8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new do |t|
t.libs.push %w(lib test)
t.libs.push %w(test)
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
end
Expand Down
5 changes: 5 additions & 0 deletions test/minitest_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'minitest/spec'
require 'minitest/autorun'
require 'simplecov'
require 'turn'
require 'coveralls'

Expand All @@ -18,6 +19,10 @@
c.natural = true
end

SimpleCov.start do
add_filter '/test/'
end

Dir[File.join(File.dirname(__FILE__), '../lib/**/*.rb')].sort.each { |f| require f }

Coveralls.wear!

0 comments on commit 6d31d8d

Please sign in to comment.