Top Level Unit Testing (mango.tests)

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.

Unit testing utilities (mango.unittest)

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.

Functions

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.

Table Of Contents

Previous topic

mango.mpe.get_time_since_start

Next topic

mango.unittest.TestCase

This Page