How does this compare to free solutions like rcov?
I cannot tell you, I have not used rcov. I just tried Google for "rcov Ruby Coverage" and couldn't find anything that I thought was the right target. If you are referring to a tool that produces text output and doesn't give you the output until the tool has ended there is no comparison - both give you coverage results, but one gives you a lot more insight into what is happening and how to represent the results and/or direct your testing, plus providing support for regression testing.
Ruby Coverage Validator graphical, stats updated in real time as the app executes - enabling you to direct your testing sequence to ensure maximum coverage if you are running interactively rather than as a regression test. You can run merge results from one run into another, or a central session - ideal for regression testing. You can export the results in HTML or XML. Multiple views onto the same data, etc.
I especially wonder if you are using trace_funcs (which can be quite slow)
Yes. Although the slowness would be compounded by using a trace func written in Ruby. Our trace func is written in C++. Matz and a few helpful people in this newsgroup provided enough information for us to put things together after examining the source code and writing quite a few test applications.
or if you found another way of getting the statistics.
Examining the Ruby source and the exported functions from the Ruby DLL indicate that it is not easy to access certain data structures that are not exported - easier and more future proof to use the existing API.
(The feature list states that it "Uses the tracing and profiling API introduced with Ruby 2.2." -- sounds like Python was replaced with Ruby and the version number was left untouched. :))
An unfortunate error. The user interface for the Python and Ruby software tools are very similar (as are the Java and C++ coverage software tools), hence the descriptions are similar - so the web descriptions are similar as are the images - check them, they are not the same - the Python images are for Python programs and the Ruby images are for Ruby programs.
We wrote the Python version 9 months ago. It will be released it soon, although that is down to Software Verification.
Aside: We are not interested in the "Is Python better/worse than Ruby/Java/whatever" debate. It doesn't get anyone anywhere, except distracted from using their own preference in language choice.
Stephen
···
In message <32ll5mF3mk632U1@individual.net>, Florian Gross <flgr@ccan.de> writes
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk
RSI Information: http://www.objmedia.demon.co.uk/rsi.html