зеркало из https://github.com/github/ruby.git
Update comments for minitest
This commit is contained in:
Родитель
cd83e716d0
Коммит
952806cdec
|
@ -46,11 +46,6 @@ module Test
|
|||
|
||||
##
|
||||
# Test::Unit is an implementation of the xUnit testing framework for Ruby.
|
||||
#
|
||||
# If you are writing new test code, please use MiniTest instead of Test::Unit.
|
||||
#
|
||||
# Test::Unit has been left in the standard library to support legacy test
|
||||
# suites.
|
||||
module Unit
|
||||
##
|
||||
# Assertion base class
|
||||
|
@ -1518,9 +1513,6 @@ module Test
|
|||
|
||||
# Overriding of Test::Unit::Runner#puke
|
||||
def puke klass, meth, e
|
||||
# TODO:
|
||||
# this overriding is for minitest feature that skip messages are
|
||||
# hidden when not verbose (-v), note this is temporally.
|
||||
n = report.size
|
||||
e = case e
|
||||
when Test::Unit::PendedError then
|
||||
|
|
|
@ -76,7 +76,7 @@ module Test
|
|||
module LifecycleHooks
|
||||
##
|
||||
# Runs before every test, after setup. This hook is meant for
|
||||
# libraries to extend minitest. It is not meant to be used by
|
||||
# libraries to extend Test::Unit. It is not meant to be used by
|
||||
# test developers.
|
||||
#
|
||||
# See #before_setup for an example.
|
||||
|
@ -85,12 +85,12 @@ module Test
|
|||
|
||||
##
|
||||
# Runs before every test, before setup. This hook is meant for
|
||||
# libraries to extend minitest. It is not meant to be used by
|
||||
# libraries to extend Test::Unit. It is not meant to be used by
|
||||
# test developers.
|
||||
#
|
||||
# As a simplistic example:
|
||||
#
|
||||
# module MyMinitestPlugin
|
||||
# module MyTestUnitPlugin
|
||||
# def before_setup
|
||||
# super
|
||||
# # ... stuff to do before setup is run
|
||||
|
@ -113,14 +113,14 @@ module Test
|
|||
# end
|
||||
#
|
||||
# class Test::Unit::Runner::TestCase
|
||||
# include MyMinitestPlugin
|
||||
# include MyTestUnitPlugin
|
||||
# end
|
||||
|
||||
def before_setup; end
|
||||
|
||||
##
|
||||
# Runs after every test, before teardown. This hook is meant for
|
||||
# libraries to extend minitest. It is not meant to be used by
|
||||
# libraries to extend Test::Unit. It is not meant to be used by
|
||||
# test developers.
|
||||
#
|
||||
# See #before_setup for an example.
|
||||
|
@ -129,7 +129,7 @@ module Test
|
|||
|
||||
##
|
||||
# Runs after every test, after teardown. This hook is meant for
|
||||
# libraries to extend minitest. It is not meant to be used by
|
||||
# libraries to extend Test::Unit. It is not meant to be used by
|
||||
# test developers.
|
||||
#
|
||||
# See #before_setup for an example.
|
||||
|
@ -141,7 +141,7 @@ module Test
|
|||
# Subclass TestCase to create your own tests. Typically you'll want a
|
||||
# TestCase subclass per implementation class.
|
||||
#
|
||||
# See MiniTest::Unit::AssertionFailedErrors
|
||||
# See <code>Test::Unit::AssertionFailedError</code>s
|
||||
|
||||
class TestCase
|
||||
include Assertions
|
||||
|
|
Загрузка…
Ссылка в новой задаче