るりまサーチ

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

別のキーワード

  1. csv skip_blanks?
  2. strscan skip
  3. _builtin skip
  4. argf.class skip
  5. stringscanner skip

キーワード

検索結果

minitest/unit (19.0)

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

...0 seconds.

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

2 tests, 2 assertions, 1 failures, 0 errors, 0 skips

test_bar だけテストしたい場合は以下のようなオプションを与えます。

$ ruby test_foo.rb -n test_bar
Loaded suite t...
...0 seconds.

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

1 tests, 1 assertions, 1 failures, 0 errors, 0 skips

コンソールを使った testrunner のみ提供されています。
またヘルプを表示することもできません。

=== 使用...
...も起こりません。

=== Error と Failure と Skip の違い

: Error
テストメソッド実行中に例外が発生した。
: Failure
アサーションに失敗した。
: Skip
テストメソッド内で MiniTest::Assertions#skip を呼び出した。

=== test/unit からの移行...

test/unit (7.0)

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

...test_bar(TC_Foo) [test_foo.rb:16]:
<"bar"> expected but was
<"foo">.

2 tests, 2 assertions, 1 failures, 0 errors, 0 skips

test_bar だけテストしたい場合は以下のようなオプションを与えます。

$ ruby test_foo.rb --name test_bar...
...test_bar(TC_Foo) [test_foo.rb:16]:
<"bar"> expected but was
<"foo">.

1 tests, 1 assertions, 1 failures, 0 errors, 0 skips

--name=test_barのような指定は行えません。

以下のようにすると help も表示されます。

$ ruby test_foo.rb --help...
...used at -j option
-q, --hide-skip Hide skipped tests
-b, --basedir=DIR Base directory of test suites.
-x, --exclude PATTERN Exclude test files on pattern.
-Idirectory Add library load path
--[no-]gc-str...