The Open FUSION Toolkit 1.0.0-8905cc5
Modeling tools for plasma and fusion research and engineering
Loading...
Searching...
No Matches
Regression Tests

Table of Contents

The Open FUSION Toolkit includes a set of regression tests which are used to monitor the main API automatically. These tests are located in sub-folders src/*/tests and documented in regression tests. Tests are run automatically each time the master branch is updated and ensure that certain basic cases produce the expected results.

Running Tests

The tests are setup to be run as a batch using the Python testing framework pytest. With pytest installed the tests may be built and run from the src folder with the following commands. The flag ‘"-m 'not slow’"` filters the tests so that time consuming tests, such as those for time-dependent MHD modules, are not run.

~$ make test
~$ pytest -m 'not slow' grid lin_alg fem physics

Writing Tests

Documentation needed