tests/testthat/setup.R

# Setup HTTP stubbing
library(webmockr)
webmockr::enable()
webmockr::httr_mock()

# Run cleanup after all tests
withr::defer(stub_registry_clear(), teardown_env())

# Set up global test values
assign("armadillo_url", "https://test.nl/", envir = .pkgglobalenv)
assign("auth_token", "token", envir = .pkgglobalenv)

Try the MolgenisArmadillo package in your browser

Any scripts or data that you put into this service are public.

MolgenisArmadillo documentation built on Nov. 17, 2023, 5:07 p.m.