See the python unittest module for unit-test framework details.
Run all mango unit-tests (single MPI process) by executing this module:
python -m mango.tests
Execute all mango unit-tests using 8-MPI-process parallelism as:
mpirun -np 8 python -m mango.tests
See options for running unit-test cases:
python -m mango.tests --help
This module imports unit-tests (test-cases) from a number of mango unit-test submodules.
See the python unittest module for unit-testing concepts. The mango.unittest module just provides MPI-aware interface for creating temporary unit-test directory which gets cleaned up at python-exit.
TestCase([methodName]) | Extends unittest.TestCase with mango.unittest.TestCase.getRootTmpDir(), mango.unittest.TestCase.createTmpDir() method and mango.unittest.TestCase.removeTmpDir() methods. |
setDoRemoveTmpDirAtExit(doRemove) | Sets whether to remove temporary unit-test directory at exit. |
getDoRemoveTmpDirAtExit() | Returns whether temporary unit-test directory is removed at exit. |
getUnitTestTmpDir() | Returns the temporary unit-test directory. |