Closed fernando-duarte closed 1 year ago
I'm going to go with a different package, testdat whose syntax is the same as the testthat
package, which I've already used for other unit tests.
I have added some validation tests, which can be found at ./tests/testthat/test-pull_bcadata.R
Thanks, good tests, we can add more in the future if/when we run into data problems. One last request before closing this issue: could you make the ranges of allowable variables a bit wider? So e.g., interest rates -5 to 25 instead of -1 to 10?
Widened the acceptable values in the data validation.
When new data is pulled, we should run some basic validation unit tests to make sure the new data looks correct. I am attaching a basic validation file that I created for the VFCI project that we can use as a starting point.
validate_data.R.zip