Project

General

Profile

Actions

Feature #4095

closed

C1 Coverage

Added by DanielHeath (Daniel Heath) over 13 years ago. Updated about 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[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

Actions #1

Updated by yugui (Yuki Sonoda) over 13 years ago

  • Assignee set to mame (Yusuke Endoh)

=begin

=end

Actions #2

Updated by shyouhei (Shyouhei Urabe) about 13 years ago

  • Status changed from Open to Assigned

Updated by mame (Yusuke Endoh) almost 13 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

Updated by nahi (Hiroshi Nakamura) about 12 years ago

  • Priority changed from Normal to 3

Contribution are welcomed...

Updated by yhara (Yutaka HARA) over 11 years ago

  • Target version changed from 2.0.0 to 2.6
Actions #6

Updated by naruse (Yui NARUSE) over 6 years ago

  • Target version deleted (2.6)

Updated by kinaan.sherwani (Kinaan Sherwani) about 6 years ago

nahi (Hiroshi Nakamura) wrote:

Contribution are welcomed...

I am planning to contribute to ruby project (starting with this issue), any pointers (where to start wiki/guide) will be much appreciated.

Updated by mame (Yusuke Endoh) about 6 years ago

  • Status changed from Feedback to Closed

Branch coverage has been already implemented at #13901 and released in Ruby 2.5.0.
Closing this ticket. Sorry for leaving it untouched.

Of course, your contribution is welcome. You may want to read:

https://bugs.ruby-lang.org/projects/ruby/wiki/DeveloperHowto
https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport
https://bugs.ruby-lang.org/projects/ruby/wiki/HowToContribute

I'm unsure if these docs are good enough, though.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0