uw-comphys / openccm

OpenCCM is a CFD-based compartment modelling software package. It is primarily intended for convection dominated reactive flows which feature a weak or one-way coupling between the reactive species and the carrier fluid, i.e. the reaction does not substantially influence the fluid flow over the course of the simulation.
https://uw-comphys.github.io/openccm/
GNU Lesser General Public License v2.1
0 stars 3 forks source link

Test suite fails #41

Open speth opened 3 weeks ago

speth commented 3 weeks ago

Most of the tests fail when I run them (main branch, commit 8ba12ae).

First, I note that the correct way to run the tests does not appear to be documented -- it requires running pytest from the pytests subdirectory, and does not work if you run pytest pytests/ from the root directory of the source tree.

The short summary of failures is as follows:

=============================== short test summary info ================================
FAILED test_run_examples.py::test_opencmp_cstr_reversible - NameError: name 'np' is not defined
FAILED test_run_examples.py::test_opencmp_cstr_irreversible - NameError: name 'np' is not defined
FAILED test_run_examples.py::test_opencmp_pfr - NameError: name 'np' is not defined
FAILED test_run_examples.py::test_opencmp_recirc - NameError: name 'np' is not defined
FAILED test_run_examples.py::test_openfoam_2d_pipe - ValueError: Specified folder (../examples/OpenFOAM/pipe_with_recirc/./) does not co...
======================== 5 failed, 1 passed, 1 warning in 3.13s ========================

The full output of pytest -v . is here:testlog.txt

I am not sure what the requirements for running the test suite are. Does it require that both OpenCMP and OpenFOAM are also installed? It might be better to include some small example input data that can be used for testing, rather than requiring a rather large dependency to be installed.

This is in the context of the review for JOSS (https://github.com/openjournals/joss-reviews/issues/6963).

Alex-Vasile commented 3 weeks ago

Hi @speth.

I'll be putting up a PR for this soon, see my comments below.

Alex-Vasile commented 3 weeks ago

Hi @speth , let me know if the changes from #45 address your comments.