r-spatialecology / landscapemetrics

Landscape Metrics for Categorical Map Patterns 🗺️ in R
https://r-spatialecology.github.io/landscapemetrics
GNU General Public License v3.0
230 stars 43 forks source link

Structure of tests #79

Closed mhesselbarth closed 4 years ago

mhesselbarth commented 5 years ago

At some point, we should revise all tests and not only check if the returning objects are tibbles (as done now), but also check if the content makes sense (e.g. if the correct types/levels of metrics are present)

mhesselbarth commented 5 years ago

I worked a bit on the tests today and there seem to be some weird warnings if you use the "Test package" shortcut of RStudio. The warnings are not present if you just execute the functions on the console.

mhesselbarth commented 4 years ago

Okay...I fixed the problem with the local warnings in 05c91f0b55be0aff859fe570040dac68ce3937f8. The problem was that during the checks the global option to_disk = TRUE was set (and not reset) which followed to some warnings afterward.