[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: TracePoint line coverage
From: Samuel Williams <space.ship.traveller () gmail ! com>
Date: 2018-01-26 8:45:49
Message-ID: CAHkN8V-ViYqe8pg2ymWsc4aGc2LoX-0dnDa1mpWtCWkkfwvTbQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello
I'm playing around with TracePoint API and code coverage using :line event.
I'd like to be able to generate a percentage coverage report for a given
file. While I can easily see what lines are executed, I can't easily
determine what lines are not executed.
What I need, I think, is a tracepoint which triggers for eval/load/require,
which allows me to determine the initial coverage of the file. In addition,
what I need in the case of eval is the actual code, or even more
preferably, the instruction sequence and a means by which I can extract the
initial coverage.
Any thoughts?
Thanks
Samuel
[Attachment #5 (text/html)]
<div dir="ltr">Hello<div><br></div><div>I'm playing around with TracePoint API \
and code coverage using :line event.</div><div><br></div><div>I'd like to be able \
to generate a percentage coverage report for a given file. While I can easily see \
what lines are executed, I can't easily determine what lines are not \
executed.</div><div><br></div><div>What I need, I think, is a tracepoint which \
triggers for eval/load/require, which allows me to determine the initial coverage of \
the file. In addition, what I need in the case of eval is the actual code, or even \
more preferably, the instruction sequence and a means by which I can extract the \
initial coverage.</div><div><br></div><div>Any \
thoughts?</div><div><br></div><div>Thanks</div><div>Samuel</div></div>
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic