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).
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).