opentripplanner
opentripplanner copied to clipboard
Run OTP for code coverage.
@layik any ideas
Tests check if they are on cran on no using
on_cran <- function() !identical(Sys.getenv("NOT_CRAN"), "true")
When code coverage is run NOT_CRAN
is missing so tests that require connection to OTP are skipped.
I think I'm setting up java correctly https://github.com/ropensci/opentripplanner/blob/0c89f8e02aef8ce9373bc0cc0ce9d82b9a151ea9/.github/workflows/test-coverage.yaml#L20
So we just need to add NOT_CRAN
to the REnvrion file before the code coverage is run.