choderalab / software-development

A primer on software development best practices for computational chemistry
255 stars 76 forks source link

Code testing #15

Closed gregoryross closed 7 years ago

gregoryross commented 7 years ago

@gregoryross (with help from @bas-rustenburg) to address:

jchodera commented 7 years ago

@marscher points out that nosetests is no longer being maintain, and pytest is a more modern framework.

bas-rustenburg commented 7 years ago

While nosetests support will end, don't forget nose2: http://nose2.readthedocs.io/en/latest/

bas-rustenburg commented 7 years ago

I came across this website, looks really helpful. http://pythontesting.net/start-here/

gregoryross commented 7 years ago

Here's another good site: http://docs.python-guide.org/en/latest/writing/tests/

gregoryross commented 7 years ago

It would also be helpful to setting on a particular testing framework for the lab. I personally like pytest.

bas-rustenburg commented 7 years ago

The hitchhikers guide (mentioned by Greg above) is probably my favorite guide on python tests.

jchodera commented 7 years ago

Drafted in #27