openmmtools icon indicating copy to clipboard operation
openmmtools copied to clipboard

Change test framework to pytest

Open ijpulidos opened this issue 1 year ago • 2 comments

We are currently using nosetests for our testing framework and we probably want to use the capabilities of a modern framework such as pytest.

I can foresee this requiring some effort, even if it should be pretty straight forward.

ijpulidos avatar Mar 13 '23 19:03 ijpulidos

Looking at how we invoke the tests: nosetests openmmtools/tests --nocapture --verbosity=2 --with-timer --with-doctest -a '!slow'

I know we will need https://pypi.org/project/pytest-attrib/ so we can handle -a '!slow'

mikemhenry avatar Mar 13 '23 23:03 mikemhenry

We will need to convert tests that use yield into parameterized tests, which I think is the only major code change needed

mikemhenry avatar Mar 13 '23 23:03 mikemhenry