Project

General

Profile

Feature #4095

C1 Coverage

Added by Daniel Heath about 5 years ago. Updated over 3 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
[ruby-core:33444]

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 about 5 years ago

  • Assignee set to Yusuke Endoh

=begin

=end

#2 Updated by Shyouhei Urabe almost 5 years ago

  • Status changed from Open to Assigned

#3 [ruby-core:37781] Updated by Yusuke Endoh over 4 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 [ruby-core:43429] Updated by Hiroshi Nakamura almost 4 years ago

  • Priority changed from Normal to 3

Contribution are welcomed...

#5 [ruby-core:48239] Updated by Yutaka HARA over 3 years ago

  • Target version changed from 2.0.0 to next minor

Also available in: Atom PDF