Rcov::HTMLCoverage how-to?

I

Intransition

Putting Rcov to work in program, the FAQ gives the following as the
basic procedure:

require 'rcov'
rcov_analyzer = Rcov::CodeCoverageAnalyzer.new
at_exit do
rcov_analyzer.remove_hook
rcov_analyzer.dump_coverage_info([Rcov::TextReport.new])
# use Rcov::HTMLCoverage above to generate HTML reports; the
formatters admit
# a number of options, listed in rcov's RDoc documentation.
end
rcov_analyzer.install_hook

That does the job for the analysis, but how do I generate the HTML
reports now? How do I use Rcov::HTMLCoverage as the embedded comment
suggests? I tried

Rcov::HTMLCoverage.new.execute

But that did nothing (which doesn't surprise me since it has no
reference to rcov_analyzer).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,163
Messages
2,570,897
Members
47,434
Latest member
TobiasLoan

Latest Threads

Top