AU-BCE-EE / ALFAM2

Model and data on ammonia volatilization (loss) from field-applied manure
GNU General Public License v3.0
7 stars 3 forks source link

Tests #7

Closed sashahafner closed 4 months ago

sashahafner commented 6 years ago

Create some tests that we can use with the testthat package. Should be helpful for testing code while making changes, in particular because there is a lot of flexibility that is hard to keep track of (e.g., incorporation or none, can use column name for incorporation or fixed time, groups or no groups, . . .).

sashahafner commented 5 years ago

Now we have started on this. Let's leave it open until we are happy with the tests.

sashahafner commented 2 years ago

I have now switched to the tinytest package. 2743258b8769bde04b4cfd618195619d7b007a27 I love it, and also the "tiny" perspective. See https://github.com/markvanderloo/tinytest and https://www.tinyverse.org/ Hmm, maybe a response to the tidyverse mess?

sashahafner commented 2 years ago

It's easy to test the latest developments with:

tinytest::build_install_test('.')
sashahafner commented 1 year ago

I have several tests but still need some on warnings and errors and more.

sashahafner commented 8 months ago

Tests seem pretty complete around c98b99a8ceb0bee0cd377c45e4ad2de2e438a71d

sashahafner commented 4 months ago

But do we have some tests of prediction value? Should do this because we sometimes change the C++ calcEmis code.