Feature #4095

C1 Coverage

Added by DanielHeath (Daniel Heath) over 1 year ago. Updated 2 months ago.

[ruby-core:33444]
Status:Feedback Start date:11/28/2010
Priority:Low Due date:
Assignee:- % Done:

0%

Category:lib
Target version:2.0.0

Description

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
    }
  ]
}

History

Updated by yugui (Yuki Sonoda) over 1 year ago

  • Assignee set to mame (Yusuke Endoh)

Updated by shyouhei (Shyouhei Urabe) about 1 year ago

  • Status changed from Open to Assigned

Updated by mame (Yusuke Endoh) 11 months 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 <mame@tsg.ne.jp>

Updated by nahi (Hiroshi Nakamura) 2 months ago

  • Priority changed from Normal to Low
Contribution are welcomed...

Also available in: Atom PDF