tests/testthat/test-microservices.R

# Setup -------------------------------------------------------------------
path <- tempfile()
name <- "concierge"
withr::defer(unlink(path))


# Tests -------------------------------------------------------------------
test_that("use_microservice runs without errors",{
    expect_silent(use_microservice(path = path))
})

test_that("add_service runs without errors",{
    expect_null(add_service(path = path, name = name))
})

Try the usethis2 package in your browser

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

usethis2 documentation built on Aug. 10, 2021, 5:07 p.m.