るりまサーチ

最速Rubyリファレンスマニュアル検索!
3115件ヒット [1-100件を表示] (0.043秒)

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

モジュール

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

rubygems/test_utilities (32000.0)

テストで使用するクラスやメソッドを定義しています。

テストで使用するクラスやメソッドを定義しています。

rubygems/commands/install_command (26042.0)

Gem パッケージをローカルリポジトリにインストールするためのライブラリです。

...nv)
-f, --[no-]force 依存関係のチェックをバイパスして強制的にインストールします
-t, --[no-]test インストール時にユニットテストを実行します
-w, --[no-]wrappers Use bin wrappers for execut...
...ッケージをインストールします
--[no-]format-executable Make installed executable names match ruby.
If ruby is ruby18, foo_exec will be
foo_exec18
Local/Remote Options:
-l, --local...
...た設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
GEMNAME インストールする Gem パッケージ...

rubygems/commands/check_command (26012.0)

インストールされている Gem パッケージを検証するためのライブラリです。

...Gem パッケージを検証します
-a, --alien 管理されていないパッケージを報告します
-t, --test Gem パッケージのユニットテストを実行します
-v, --version VERSION 特定のバージョン...
...た設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Summary:
インストールされている Gem パッケージをチ...

Kernel.#test(cmd, file) -> bool | Time | Integer | nil (18136.0)

単体のファイルでファイルテストを行います。

...me
: ?A
ファイルの最終アクセス時刻を返す -> Time
: ?C
ファイルの inode 変更時刻を返す -> Time

//emlist[例][ruby]{
IO.write("testfile", "test")
test
("r", "testfile") # => true
test
("s", "testfile") # => 4
test
("M", "testfile") # => 2018-03-31 07:38:40 +0900
//}...

Kernel.#test(cmd, file1, file2) -> bool (18131.0)

2ファイル間のファイルテストを行います。

...?-
ファイル1とファイル2が同一のファイルである

//emlist[例][ruby]{
IO.write("testfile1", "test1")
IO.write("testfile2", "test2")
%w(= < > -).each do |e|
result = test(e, "testfile1", "testfile2")
puts "#{e}: #{result}"
end
//}

# => =: true
# => <: false
# => >: false
#...

絞り込み条件を変える

Rake::TestTask#ruby_opts -> Array (9117.0)

テスト実行時に Ruby コマンドに渡されるオプションを返します。

...テスト実行時に Ruby コマンドに渡されるオプションを返します。...

Rake::TestTask#ruby_opts=(options) (9117.0)

テスト実行時に Ruby コマンドに渡されるオプションをセットします。

...テスト実行時に Ruby コマンドに渡されるオプションをセットします。

@param options 配列でオプションを指定します。...

Rubyの起動 (6291.0)

Rubyの起動 * cmd_option * shebang

...Rubyの起動
* cmd_option
* shebang

Ruby
インタプリタの起動は以下の書式のコマンドラインにより行います。

ruby
[ option ...] [ -- ] [ programfile ] [ argument ...]

ここで、option は後述のcmd_option
のいずれかを指定します。-- は、オプシ...
...ョン列の終りを明示するため
に使用できます。programfile は、Ruby スクリプトを記述したファイ
ルです。これを省略したり`-' を指定した場合には標準入力を Ruby
クリプトとみなします。

programfile が `#!' で始まるファイル...
...指定します。

//emlist{
# test.rb
def f6 = raise
def f5 = f6
def f4 = f5
def f3 = f4
def f2 = f3
def f1 = f2
f1
//}

//emlist{
% ruby --backtrace-limit=3 test.rb
test
.rb:1:in `f6': unhandled exception
from test.rb:2:in `f5'
from test.rb:3:in `f4'
from test.rb:4:in `f3'
... 3 levels......

test/unit (6252.0)

ユニットテストを行うためのライブラリです。

... Test::Unit - Ruby用単体テストフレームワーク: https://test-unit.github.io/

なお、2.2.0より前のtest/unit は当時バンドルしていた minitest/unit を使って再実装し
ていましたが、上記のtest/unitと完全な互換性がある訳ではありません。

Ruby
...
...っています。

* Rubyのテスティングフレームワークの歴史(2014年版) https://www.clear-code.com/blog/2014/11/6.html
* RubyKaigi 2015:The history of testing framework in Ruby https://www.clear-code.com/blog/2015/12/12.html

=== 使い方

Test
::Unit は以下のよう...
...foo"
end
def bar
"foo"
end
end

次にユニットテスト(test_foo.rb)を書きます。テストを実行するメソッド(テストメソッド)の名前は
全て test_ で始まる必要があります。テストメソッドが実行される前には setup...

minitest/unit (6120.0)

ユニットテストを行うためのライブラリです。

...ラリです。

=== 使い方

minitest/unit は以下のように使います。

テスト対象のソース (foo.rb) を用意します。

class Foo
def foo
"foo"
end
def bar
"foo"
end
end

次にユニットテスト (test_foo.rb) を書きます。
テストを...
...) の名前はすべて "test" で始まる必要があります。
テストメソッドが実行される前には setup メソッドが必ず実行されます。
テストメソッドが実行された後には teardown メソッドが必ず実行されます。

minitest/unit を Kernel.#requir...
...require 'minitest/unit'
require 'minitest/autorun'
require 'foo'
# 以下略

テストを実行するには上で用意した test_foo.rb を実行します。
デフォルトではすべてのテストが実行されます。

$ ruby test_foo.rb
Loaded suite test_foo
Started
F....

絞り込み条件を変える

GC.latest_gc_info(key) -> object (6106.0)

最新のGCの情報を返します。

...ます。

//emlist[例][ruby]{
latest = GC.latest_gc_info
latest # => {:major_by=>nil, :gc_by=>:newobj, :have_finalizer=>false, :immediate_sweep=>false, :state=>:sweeping}

stat = GC.stat
merged = GC.latest_gc_info(stat)
merged == latest.merge(stat) # => true

GC.latest_gc_info(:gc_by) # => :new...
<< 1 2 3 ... > >>