tests/testthat.R

library(testthat)

test_that("Testing the URL validity", {
  expect_equal(httr::status_code(httr::GET("https://omabrowser.org/api")), 200 ) #checking that the server is live and accesible

})
DessimozLab/OmaDB documentation built on April 19, 2024, 9:54 p.m.