Skip to content

Commit

Permalink
Merge 268299e into 64ce8f2
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Jun 18, 2018
2 parents 64ce8f2 + 268299e commit eaaf82e
Showing 1 changed file with 74 additions and 1 deletion.
75 changes: 74 additions & 1 deletion docs/source/reference/check.rst
Expand Up @@ -45,13 +45,86 @@ and :class:`cupy.ndarray`.
:nosignatures:

chainer.testing.assert_allclose
chainer.testing.assert_warns

Function testing utilities
--------------------------
Chainer provides some utilities for testing its functions.

Utilities for testing functions.

.. autosummary::
:toctree: generated/
:nosignatures:

chainer.testing.unary_math_function_unittest

Serialization testing utilities
-------------------------------

Utilities for testing serializable objects.

.. autosummary::
:toctree: generated/
:nosignatures:

chainer.testing.save_and_load
chainer.testing.save_and_load_hdf5
chainer.testing.save_and_load_npz
chainer.testing.get_trainer_with_mock_updater

Trainer Extension Testing Utilities
-----------------------------------

Utilities for testing :ref:`trainer extensions <extensions>`.

.. autosummary::
:toctree: generated/
:nosignatures:

chainer.testing.get_trainer_with_mock_updater

Repeat decorators
-----------------

These decorators have a decorated test run multiple times
in a single invocation. Criteria of passing / failing
of the test changes according to the type of decorators.
See the document of each decorator for details.

.. autosummary::
:toctree: generated/
:nosignatures:

chainer.testing.condition.repeat_with_success_at_least
chainer.testing.condition.repeat
chainer.testing.condition.retry


Unit test annotation
--------------------

Decorators for annotating unit tests.

.. autosummary::
:toctree: generated/
:nosignatures:

chainer.testing.attr.gpu
chainer.testing.attr.multi_gpu
chainer.testing.with_requires
chainer.testing.fix_random


Parameterized test
------------------

Decorators for making a unit test parameterized.

.. autosummary::
:toctree: generated/
:nosignatures:

chainer.testing.parameterize
chainer.testing.product
chainer.testing.product_dict

0 comments on commit eaaf82e

Please sign in to comment.