R Under development (unstable) (2025-08-31 r88749 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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(ocs4R) > > if(Sys.getenv("NOT_CRAN") == "true"){ + + #test environment + ocs_url <- "http://localhost:8080" + ocs_user <- "admin" + ocs_pwd <- "admin" + + OCS <- ocsManager$new( + url = ocs_url, + user = ocs_user, + pwd = ocs_pwd, + logger = "DEBUG" + ) + + if(is(OCS, "ocsManager")){ + cat(sprintf("OCS REST endpoint at '%s' configured with token. Running integration tests...\n", ocs_url)) + test_check("ocs4R") + }else{ + cat("OCS REST endpoint at '%s' not configured. Skipping integration tests...\n") + } + + } > > proc.time() user system elapsed 0.46 0.04 0.51