22件ヒット
[1-22件を表示]
(0.105秒)
ライブラリ
-
rake
/ testtask (11)
検索結果
先頭2件
-
rake (26030.0)
-
Rake というコマンドラインツールを扱うライブラリです。
...Rake というコマンドラインツールを扱うライブラリです。
=== Rake とは
Rake は Make によく似た機能を持つ Ruby で書かれたシンプルなビルドツールです。
Rake は以下のような特徴を持っています。
* Rakefile (Rake における Makef......のためのオプションです。
-D, --describe [PATTERN] パターンにマッチしたタスクの詳細を表示して終了します。
パターンは省略可能です。
-n, --dry-run アクションを実行せずにタ......で工夫次第で Ruby にできることなら何でもできます。
簡単な例:
# coding: utf-8
task :hello do
puts 'do task hello!'
end
動的にタスクを定義する例:
# coding: utf-8
require 'rake/testtask'
require 'rake/clean' # clean, clobber の二つのタス... -
Rake
:: TestTask (21024.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_file.rb # run just......one test file.
rake test TESTOPTS="-v" # run in verbose mode
rake test TESTOPTS="--runner=fox" # use the fox test runner...