Feature #4095

C1 Coverage

Added by Daniel Heath over 3 years ago. Updated over 1 year ago.

[ruby-core:33444]
Status:Feedback
Priority:Low
Assignee:-
Category:lib
Target version:next minor

Description

=begin
The built-in coverage in Ruby 1.9 is great, but it only offers line-by-line coverage.

It would be better if we could determine which parts of each line have been run e.g:

# File 'coverage_example.rb'
true ? 'always run' : 'never run'

Coverage would return:
{'coverage_example.rb' =>
[
{
0..28 => 1
},
{
0..21 => 1,
22..33 => 0
}
]
}
=end

History

#1 Updated by Yuki Sonoda over 3 years ago

  • Assignee set to Yusuke Endoh

=begin

=end

#2 Updated by Shyouhei Urabe about 3 years ago

  • Status changed from Open to Assigned

#3 Updated by Yusuke Endoh almost 3 years ago

  • Category set to lib
  • Status changed from Assigned to Feedback
  • Assignee deleted (Yusuke Endoh)
  • Target version set to 2.0.0

Hello, sorry for very late response...

I agree that C1 coverage is very helpful. But I have no plan to
implement the feature. It will be a tough task.

Your contribution is wanted. If anyone writes a patch, please
send us.

Yusuke Endoh mame@tsg.ne.jp

#4 Updated by Hiroshi Nakamura about 2 years ago

  • Priority changed from Normal to Low

Contribution are welcomed...

#5 Updated by Yutaka HARA over 1 year ago

  • Target version changed from 2.0.0 to next minor

Also available in: Atom PDF