M
Markus Fischer
Hi,
I've a Rakefile generated by jeweler. It uses rcov default but that
doesn't properly work with 1.9 (I'm using 1.9.2), so I'd like to enable
simplecov for my tests. I've used simplecov successfully without a Rakefile.
I added
gem "simplecov", ">= 0.4.0"
to Gemfile and modified the test task:
require 'rake/testtask'
require 'simplecov'
Rake::TestTask.new
test) do |test|
SimpleCov.start do
add_filter 'test_'
end
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
simplecov is executed, but doesn't record anything:
Coverage report generated for rake to coverage. 0 / 0 LOC (0.0%) covered.
As far as I can see, simplecov doesn't provide a ready rake task, how
can I use it in this case? I've gone through the rake documentation but
didn't spot anything obvious I'm missing.
thanks,
- Markus
I've a Rakefile generated by jeweler. It uses rcov default but that
doesn't properly work with 1.9 (I'm using 1.9.2), so I'd like to enable
simplecov for my tests. I've used simplecov successfully without a Rakefile.
I added
gem "simplecov", ">= 0.4.0"
to Gemfile and modified the test task:
require 'rake/testtask'
require 'simplecov'
Rake::TestTask.new
SimpleCov.start do
add_filter 'test_'
end
test.libs << 'lib' << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
simplecov is executed, but doesn't record anything:
Coverage report generated for rake to coverage. 0 / 0 LOC (0.0%) covered.
As far as I can see, simplecov doesn't provide a ready rake task, how
can I use it in this case? I've gone through the rake documentation but
didn't spot anything obvious I'm missing.
thanks,
- Markus