Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.04 KB

readme.rst

File metadata and controls

32 lines (24 loc) · 1.04 KB

OpenMC Test Suite

The purpose of this test suite is to ensure that OpenMC compiles using various combinations of compiler flags and options and that all user input options can be used successfully without breaking the code. The test suite is by no means complete and should not be viewed as a comprehensive unit test suite will full coverage. Until more effort can be put into actual unit testing, this suite is a simple means of making sure that new features added into the code don't break existing features.

The test suite is designed to run with the third-party Python package nose. Running the test suite is as simple as going to the tests/ directory and running:

.. sh::
    nosetests

However, usually testing is split into two parts: compilation and running. To run the compilation tests, use:

.. sh::
    nosetests test_compile

Then, to run all the normal tests (which require that an OpenMC executable is already built):

.. sh::
    nosetests --exclude-dir=test_compile