Feature #10189
closedCoverage report with Simplecov
Description
I ported simplecov into ruby core for measurement of test coverage.
see. https://github.com/ruby/ruby/pull/708
simplecov is MIT license. we can bundle it to ruby. Can I merge it?
Updated by normalperson (Eric Wong) about 10 years ago
Can we keep it out-of-tree and use it like rubyspec?
I may also extract the terminal-friendly coverage output of yahns
into a standalone gem, its only a few lines:
http://bogomips.org/yahns.git/plain/test/covshow.rb
http://bogomips.org/yahns.git/plain/test/helper.rb
I can make yahns test code CC0/public domain.
Updated by hsbt (Hiroshi SHIBATA) about 10 years ago
Eric Wong wrote:
Can we keep it out-of-tree and use it like rubyspec?
Good point.
I implemented make update-coverage
task like update-rubyspec.
https://github.com/ruby/ruby/pull/708/files
I may also extract the terminal-friendly coverage output of yahns
into a standalone gem, its only a few lines:http://bogomips.org/yahns.git/plain/test/covshow.rb
http://bogomips.org/yahns.git/plain/test/helper.rbI can make yahns test code CC0/public domain.
simplecov can switch terminal-friendly report.
but simplecov shows unreachable code us with html report. It's so useful.
Updated by hsbt (Hiroshi SHIBATA) about 10 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Applied in changeset r47347.
- test/runner.rb: reporting test coverage for test-all with COVERAGE env.
[Feature #10189][ruby-core:64681] - Makefile.in: added task for coverage report.
- common.mk: added definition of forked simplecov url.
- .gitignore: ignored coverage directory.