The tests for FitBenchmarking require
pytest>=3.6. We have split the tests
into two categories:
default: denotes tests involving
pipinstallable software packages,
all: in addition to
default, also runs tests on external packages.
Each module directory in FitBenchmarking (e.g.
controllers) contains a
test folder which has the
unit tests for that module.
One can run the tests for a module by:
pytest fitbenchmarking/<MODULE_DIR> --test-type <TEST_TYPE>
where <TEST_TYPE> is either
--test-type argument is not given the default is
System tests can be found in the
systests directory in FitBenchmarking.
As with the unit tests, these can be run via:
pytest fitbenchmarking/systests --test-type <TEST_TYPE>
The files in the expected results subdirectory of the
directory are generated to check consistency in our automated tests via
They might not pass on your local operating system due to, for example,
different software package versions being installed.