Closed maurolepore closed 5 years ago
Next, we need to start adding tests for each exported function.
I'll add tests as they become necessary. For now, it's sufficient with the regression test we already have. If anything changes the output, we'll know.
From @maurolepore on September 18, 2018 15:12
You are already testing, but likely in a non-systematic way: you write a function, run it, and see its output on the console to check check if it's right. You will save you a lot of time if you test systematically, with an automatic unit testing system such as the testthat package. To use testthat run:
Then you will see
tests/
in the root directory of your package. Then you add new tests with:This video shows the testing workflow: https://youtu.be/Ajtfdc2hnxo
_Copied from original issue: ervanSTRI/AGBfluxpack#10