FiniteVolumeTransportPhenomena / PyFVTool

Finite volume toolbox in Python
GNU Lesser General Public License v2.1
13 stars 4 forks source link

Initial pytest configuration to run simply run pytest from the command line #14

Closed mhvwerts closed 1 year ago

mhvwerts commented 1 year ago

With #12 in mind, here is an initial configuration of pytest. It is just a simple pytest.ini with few options. The comments in that file should ultimately go into the chapter "development and testing" in the documentation).

This configuration allows for pytest to be simply run from the command line, without further specified options, while in the root PyFVTool directory. It runs the notebooks.

A few matplotlib windows are created by the scripts. These should be manually closed for the tests to complete.

Jupyter Notebooks are tested, and your unittests, too. And also other scripts named test_* etc.

I did not try to fix any test failures. This can be done later when there is time. The objective here is just to be able to invoke pytest.

(P.S. I got "3 failed, 3 passed, 4 warnings" with pytest exiting gracefully)