種類
- ライブラリ (2)
- インスタンスメソッド (1)
ライブラリ
-
minitest
/ unit (1)
クラス
-
MiniTest
:: Unit (1)
キーワード
-
minitest
/ unit (1) -
test
/ unit (1)
検索結果
-
MiniTest
:: Unit # skips -> Fixnum (18201.0) -
実行しなかったテストケース数を返します。
実行しなかったテストケース数を返します。 -
test
/ unit (132.0) -
ユニットテストを行うためのライブラリです。
...なりまし
た。詳しい内容は下記のプロジェクトページを参照してください。
* Test::Unit - Ruby用単体テストフレームワーク: https://test-unit.github.io/
なお、2.2.0より前のtest/unit は当時バンドルしていた minitest/unit を使って再実......* 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 は以下のように使います。......ted but was
<"foo">.
2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
test_bar だけテストしたい場合は以下のようなオプションを与えます。
$ ruby test_foo.rb --name test_bar
Loaded suite test_foo
Started
F
Finis... -
minitest
/ unit (30.0) -
ユニットテストを行うためのライブラリです。
...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 test_foo
Started
F
Finished in 0.000820 seconds.......ts, 1 assertions, 1 failures, 0 errors, 0 skips
コンソールを使った testrunner のみ提供されています。
またヘルプを表示することもできません。
=== 使用可能なオプション
: -v
詳細を表示します。
: -n, --name
指定されたテストメソッ...