るりまサーチ

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

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

検索結果

Rake::TestTask (6003.0)

ユニットテストを実行するためのタスクを作成するクラスです。

...ラスです。

例:
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/test*.rb']
t.verbose = true
end

以下に test ターゲットの使用例を示します。

例:
rake test # run tests normally
rake test TEST=just_one_fi...
...le.rb # run just one test file.
rake test TESTOPTS="-v" # run in verbose mode
rake test TESTOPTS="--runner=fox" # use the fox test runner...