るりまサーチ

最速Rubyリファレンスマニュアル検索!
20件ヒット [1-20件を表示] (0.017秒)
トップページ > クエリ:class[x] > クエリ:coverage[x] > 種類:ライブラリ[x]

別のキーワード

  1. argf.class each
  2. argf.class each_line
  3. argf.class lines
  4. class new
  5. argf.class to_a

検索結果

coverage (38157.0)

カバレッジを測定するためのライブラリです。

...(1) require "coverage" で、ライブラリを読み込む。
(2) Coverage.start を実行し、測定を開始する。
(3) require や load で測定対象のファイルを実行する。
(4) Coverage.result や Coverage.peek_result で結果を確認する。

Coverage
.result は、...
..."coverage"
Coverage
.start
load "foo.rb"
p Coverage.result # => {"foo.rb"=>[1, 1, 10, nil, nil, 1, 1, nil, 0, nil]}
//}

この Coverage.result["foo.rb"] から得られる配列は各行の実行回数になっています。


=== カバレッジモードの指定

Ruby 2.5 以降では、Coverage...
...る結果の情報は、引数でモードを明示的にしない場合と同じです。

//emlist[][ruby]{
require "coverage"
Coverage
.start(lines: true)
load "foo.rb"
p Coverage.result # => {"foo.rb"=>{:lines=>[1, 1, 10, nil, nil, 1, 1, nil, 0, nil]}}
//}

キーの :lines が指す値は、各...

rdoc (43.0)

RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。

...: --charset charset

生成する HTML の charset を指定します。

可能であれば --encoding を使用してください。

: --coverage-report level, --dcov level

ドキュメントが記述されていない要素に関するレポートを出力します。0 以
下を指...
...ッドの引数に関するレポー
トを出力します。level を省略した場合は 0 を指定したと見なされます。

: --no-coverage-report, --no-dcov

ドキュメントが記述されていない要素に関するレポートを出力しません。

: --debug

実行時に...
...source directory. Default is
the current directory.

: --page-dir dir

Directory where guides, your FAQ or other pages not associated with
a class live. Set this when you don't store such files at your
project root. NOTE: Do not use the same file name in the page dir
and the root of your...