るりまサーチ

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

別のキーワード

  1. zlib finished?
  2. psych finished
  3. psych finished?
  4. visitors finished
  5. zstream finished?

キーワード

検索結果

minitest/unit (13.0)

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

...行します。
デフォルトではすべてのテストが実行されます。

$ ruby test_foo.rb
Loaded suite test_foo
Started
F.
Finished
in 0.000940 seconds.

1) Failure:
test_bar(TestFoo) [test_foo.rb:20]:
Expected "bar", not "foo".

2 tests, 2 assertions, 1 failures...
...トしたい場合は以下のようなオプションを与えます。

$ ruby test_foo.rb -n test_bar
Loaded suite test_foo
Started
F
Finished
in 0.000820 seconds.

1) Failure:
test_bar(TestFoo) [test_foo.rb:20]:
Expected "bar", not "foo".

1 tests, 1 assertions, 1 failure...

test/unit (13.0)

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

...トではすべてのテストが実行されます。

$ ruby test_foo.rb

Loaded suite test_foo
Started
F.
Finished
in 0.022223 seconds.

1) Failure:
test_bar(TC_Foo) [test_foo.rb:16]:
<"bar"> expected but was
<"foo">....
...うなオプションを与えます。

$ ruby test_foo.rb --name test_bar

Loaded suite test_foo
Started
F
Finished
in 0.019573 seconds.

1) Failure:
test_bar(TC_Foo) [test_foo.rb:16]:
<"bar"> expected but was
<"foo">....
...Base directory of test suites.
-x, --exclude PATTERN Exclude test files on pattern.
-Idirectory Add library load path
--[no-]gc-stress Set GC.stress as true

複数のテストを一度に行う場合、以下のように書いた...