Testing suite #75
Replies: 2 comments
-
|
I would say some testing of the plotting and output functions |
Beta Was this translation helpful? Give feedback.
-
|
I found the discussion here, so I’m going to provide the testing review here instead of opening an issue. This way, you can decide which suggestions should be turned into issues and how to prioritize them. Feel free to let me know if you have any questions! All suggestions below are based on a review of commit High priority tasks before early summer
Currently, R CMD Check GHAs are only running on At the same time, it may be worth considering a transition to reusable workflows from {ghactions4r} (e.g., The vignettes are also acting as lightweight integration/system tests. Because of that, reusable workflows like
The project already has a strong set of integration tests, especially in folders like Copilot or similar coding assistants could also help generating initial tests. Mocking feature from {testthat} could be useful if you want to test outputs without adding too many full integration tests before the deadline.
I agree with Cole here, one potential test would be a small set of end-to-end system tests that 1) fit a model using a known input, 2) save outputs in csv, 3) compare outputs using a snapshot tests (see FIMS Long-term tasks after early summer
Automated coverage reporting would make it much easier to see gaps in testing over time. Right now, {covr} skips some tests because of
The integration tests are already well organized and easy to follow. As more tests get added, it would help to keep a consistent structure.
The test suite currently takes a bit of time to run. Longer term, it might be worth rethinking the balance between integration and unit tests. Some slower integration tests could potentially be replaced with smaller, faster unit tests while still keeping good overall coverage. This is something being explored in the FIMS test suite as well, and I can share more concrete ideas later if helpful. Feel free to assign me any tasks if you need help with this. I’m a bit torn about when to fix the {covr} setup. If it would be useful to get it done sooner rather than later, we could also set aside a couple of hours to work on it together. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@Cole-Monnahan-NOAA think through any additional tests to add to testing suite.
We currently have tests to:
updateM1 = TRUE.Beta Was this translation helpful? Give feedback.
All reactions