<aside> 💡 This guide applies to the following projects:

Untitled

We are trying to move more of our code to pytest, but this is an-going project.

</aside>

<aside> 💡 This guide applies to the following projects:

</aside>

Running Tests

In most of our codebases, you can run a nose-based test suite by typing:

# To run with your default Python version (varies by virtualenv)
$ ./tests/runtests.py <args>

# To run with a specific Python version, such as 3.9:
$ python3.9 ./tests/runtests.py <args>

This may take additional arguments for running subsets of tests, debugging tests, etc. See the sections below.

You can refer to the nose usage guide for additional options not covered here.

If you want assistance on writing unit tests, see Writing Unit Tests.

Running Subsets of Tests

Running all unit tests may take a while. To speed up unit testing, there are options to run subsets of tests.

To run only the tests in a specific module: