Skip to content
Snippets Groups Projects
Commit 82adad8d authored by Bienchen's avatar Bienchen
Browse files

Link to Boost Test Library

parent 3d59dc2f
Branches
Tags
No related merge requests found
......@@ -535,10 +535,11 @@ sporting a single monolithic :file:`test_sidechains.py`.
|python| code is evaluated using its own
:py_docs:`unit testing framework <library/unittest.html>` with a little help
from |ost_s|_. The basic scheme is to import your module, subclass
:class:`unittest.TestCase` and make the whole file runnable as script using the
most common |nameattr|_ attribute. A file :file:`tests/test_something.py` could
look like this, carrying a single test case:
from |ost_s|_ (|C++| uses the |boost| `Test Library <http://www.boost.org/doc/libs/1_47_0/libs/test/doc/html/index.html>`_).
The basic scheme is to import your module, subclass :class:`unittest.TestCase`
and make the whole file runnable as script using the most common |nameattr|_
attribute. A file :file:`tests/test_something.py` could look like this,
carrying a single test case:
.. testcode:: promod3unittest
:hide:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment