Feature #4095

C1 Coverage

Added by DanielHeath (Daniel Heath) about 7 years ago. Updated 27 days ago.

Target version:


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


#1 Updated by yugui (Yuki Sonoda) about 7 years ago

  • Assignee set to mame (Yusuke Endoh)



#2 Updated by shyouhei (Shyouhei Urabe) almost 7 years ago

  • Status changed from Open to Assigned

#3 [ruby-core:37781] Updated by mame (Yusuke Endoh) over 6 years ago

  • Category set to lib
  • Status changed from Assigned to Feedback
  • Assignee deleted (mame (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

#4 [ruby-core:43429] Updated by nahi (Hiroshi Nakamura) almost 6 years ago

  • Priority changed from Normal to 3

Contribution are welcomed...

#5 [ruby-core:48239] Updated by yhara (Yutaka HARA) about 5 years ago

  • Target version changed from 2.0.0 to 2.6

#6 Updated by naruse (Yui NARUSE) 27 days ago

  • Target version deleted (2.6)

Also available in: Atom PDF