R Under development (unstable) (2024-06-05 r86695 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(connectapi) > > if (nzchar(Sys.getenv("CONNECTAPI_INTEGRATED"))) { + # Make sure one server is up + tryCatch( + httr::content(httr::GET(paste0(Sys.getenv("TEST_1_SERVER"), "/__ping__"))), + error = function(e) { + stop("Server 1 is not healthy") + } + ) + + test_dir( + rprojroot::find_package_root_file("tests/integrated"), + reporter = "summary", + package = "connectapi", + load_package = "installed" + ) + } else { + message("Not running integration tests. Set environment variable CONNECTAPI_INTEGRATED=true to run integration tests") + } Not running integration tests. Set environment variable CONNECTAPI_INTEGRATED=true to run integration tests > > proc.time() user system elapsed 0.29 0.03 0.32