Is it possible to use python to unit test C++ code?
Fredrik Lundh
fredrik at pythonware.com
Mon Oct 30 02:17:13 EST 2006
Liu HuaDong-E6754C wrote:
> Did any one used python to do C++ unit test?
> If u did, could u give some actions how to do unit test by using python.
use a standard tool to generate a binding for the relevant C++ libraries:
http://www.effbot.org/pyfaq/how-do-i-interface-to-c-objects-from-python.htm
and then write Python code to do the tests, preferably using an
available Python testing framework. this page mentions some of them:
http://www.effbot.org/pyfaq/how-do-i-test-a-python-program-or-component.htm
http://docs.python.org/lib/module-doctest.html
http://docs.python.org/lib/module-unittest.html
</F>
More information about the Python-list
mailing list