tests/testthat/test-use_dockerfile.R

test_that("use_dockerfile works", { 
  
  path <- use_dockerfile(save_dir=tempdir())
  testthat::expect_true(file.exists(path))
  
  out <- testthat::capture_output_lines({
    path2 <- use_dockerfile(save_dir=tempdir(), 
                            force_new = FALSE,
                            show = TRUE)
  })
  testthat::expect_true(file.exists(path2))
  testthat::expect_equal("# ----- R Package Dockerfile -----",out[[1]])
})

Try the rworkflows package in your browser

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

rworkflows documentation built on May 29, 2024, 2:37 a.m.