るりまサーチ

最速Rubyリファレンスマニュアル検索!
4119件ヒット [101-200件を表示] (0.034秒)

別のキーワード

  1. kernel test
  2. _builtin test
  3. rubygems/test_utilities tempio
  4. rubygems/test_utilities fetcher=
  5. validator unit_test

オブジェクト

キーワード

検索結果

<< < 1 2 3 4 ... > >>

Gem::Specification#test_suite_file -> String (6117.0)

この属性は非推奨です。 Gem::Specification#test_files を使用してください。

...この属性は非推奨です。 Gem::Specification#test_files を使用してください。...

Gem::Specification#test_suite_file=(file) (6117.0)

この属性は非推奨です。 Gem::Specification#test_files= を使用してください。

...この属性は非推奨です。 Gem::Specification#test_files= を使用してください。

@param file テストスイートのファイルを指定します。...

minitest/unit (6108.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 'foo'

MiniTest::Unit.autorun

class TestFoo < MiniTest::Unit::TestCase
def setup
@foo = Foo.new
end
# teardown はあまり使わない
def teardown
@foo = nil
end

def test_foo
assert_equal "foo",...

Gem::Specification#has_test_suite? -> bool (6101.0)

このメソッドは非推奨です。 Gem::Specification#has_unit_tests? を使用してください。

...このメソッドは非推奨です。 Gem::Specification#has_unit_tests? を使用してください。...

Gem::Specification#test_files -> [String] (6101.0)

ユニットテストのファイルのリストを返します。

ユニットテストのファイルのリストを返します。

絞り込み条件を変える

Gem::Specification#test_files=(files) (6101.0)

ユニットテストのファイルのリストをセットします。

ユニットテストのファイルのリストをセットします。

@param files ユニットテストのファイルのリストを指定します。

Gem::Validator#unit_test(gem_spec) (6101.0)

与えられた Gem スペックにしたがってユニットテストを実行します。

与えられた Gem スペックにしたがってユニットテストを実行します。

@param gem_spec Gem::Specification のインスタンスを指定します。

GC.latest_gc_info(key) -> object (6100.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) # => :newobj...

GC.latest_gc_info(result_hash = {}) -> Hash (6100.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) # => :newobj...

Gem::Server#latest_specs(request, response) -> () (6100.0)

メソッド名に対応する URI に対するリクエストを処理するメソッドです。

メソッド名に対応する URI に対するリクエストを処理するメソッドです。

@param request WEBrick::HTTPRequest オブジェクトが自動的に指定されます。

@param response WEBrick::HTTPResponse オブジェクトが自動的に指定されます。

絞り込み条件を変える

<< < 1 2 3 4 ... > >>