CWorthy-ocean / C-Star

C-Star is a python package for setting up and running ocean model simulations, with a particular focus on marine carbon dioxide removal (mCDR) applications.
https://c-star.readthedocs.io
10 stars 4 forks source link

Unit tests #128

Closed NoraLoose closed 3 days ago

NoraLoose commented 1 week ago

This is a WIP PR for more unit tests. We want to test all classes separately:

I'm submitting this now as a draft because I want to see if CodeCov will comment on this PR (and update as more commits are pushed) to show us the change in coverage (before merging).

NoraLoose commented 1 week ago

Seems like CodeCov is not commenting. The updated codecov.yml probably has to be in the main branch for this. Will submit and merge as separate PR.

NoraLoose commented 4 days ago

@dafyddstephenson Sorry, I haven't gotten very far with this yet. I started testing the cstar/case.py module, and just started testing the ROMSBaseModel object (see latest push). Let me know if you would like to help writing some unit tests for any of the classes.

NoraLoose commented 3 days ago

Closing this. Will open new PR to track this.