alanfbaird / PyTASA

Python Tools for Analysing Seismic Anisotropy
MIT License
5 stars 4 forks source link

More testing stuff #16

Open andreww opened 7 years ago

andreww commented 7 years ago

We should have a test case to check the code style matches PEP8. There is a library for this so that should be easy. Obspy has one implementation but we should go much simpler.

It is also worth adding coverage monitoring for the test cases. This blog post outlines how to do this with pytest, but we use nose so that would need modification.

While we are at it, we may want to think about moving from nosetest to pytest (as nose is deprecated) but the test cases would need a bit of work.

andreww commented 7 years ago

An example of using using nose with coveralls: http://levibostian.com/blog/python-code-coverage-and-coveralls-io/