As discussed in the last meeting, I built up CI/CD here and created the folder tests/
and sub-folders and files. After we merge this branch, the unit tests will run automatically every time a push to gitlab happens (e.g., https://earth.bsc.es/gitlab/es/auto-s2s/-/jobs/19775)
Under tests/
, I separated seasonal and decadal tests (test_seasonal.R and test_decadal.R) so they can run at the same time. We can add the sub-seasonal one in the future. The testing recipes are stored under tests/recipes/
and the testing scripts are under tests/testthat/
.
I've created one testing script for decadal monthly case and test_decadal.R is done. You can take them as reference to modify the seasonal files (I created them but they're empty now.)
The structure can be modified if you see anything that can be improved. We can go through this in the meeting next week.
Cheers,
An-Chi