PredictiveEcology / LandWeb

Shared repository for Landweb modules
https://predictiveecology.github.io/LandWeb/
GNU General Public License v3.0
3 stars 2 forks source link

add unit tests and implement CI #68

Closed achubaty closed 4 years ago

achubaty commented 6 years ago

some modules already have unit tests, but they will likely fail if run today because of the changes made to those modules and because they use hardcoded paths instead of relative ones.

see here for getting travis setup for non-R packge code.

We would need to:

  1. install any system dependencies (GDAL, mapshaper, etc.);
  2. install all dependency packages (start with SpaDES and testthat, then parse the module metadata for reqdPkgs and install them);
  3. ensure the test .R files each load any packages required of them and clean up after themselves.
achubaty commented 6 years ago

NOTE: much of this could/should be implemented in SpaDES.core. Started an issue there (https://github.com/PredictiveEcology/SpaDES.core/issues/74).

achubaty commented 4 years ago

closing, as much of the module testing machinery needs implementing in SpaDES.core and other code sued by modules is being tested in packages (e.g., LandR and LandWebUtils)